@@ -254,8 +254,8 @@ pub struct Args {
254
254
/// - BLOCK <BLOCK_HASH> <TXS>
255
255
/// `https://mempool.space/api/block/<BLOCK_HASH>/txs`
256
256
pub block_txs : Option < String > ,
257
- /// mempool-space --block_txs <BLOCK_HASH> --block_start_index <BLOCK_INDEX >
258
- pub block_start_index : Option < String > ,
257
+ /// mempool-space --block_txs <BLOCK_HASH> --start_index <START_INDEX >
258
+ pub start_index : Option < String > ,
259
259
260
260
/// - V1 BLOCKS <BLOCK_HEIGHT>
261
261
/// `https://mempool.space/api/v1/blocks/<BLOCKS_START_HEIGHT>`
@@ -352,7 +352,7 @@ impl Args {
352
352
opts. optopt ( "" , "block_txids" , "block txids api call" , "BLOCK_TXIDS" ) ;
353
353
354
354
opts. optopt ( "" , "block_txs" , "block txs api call" , "BLOCK_TXS" ) ;
355
- opts. optopt ( "" , "block_start_index " , "block txs api call" , "BLOCK_START_INDEX " ) ;
355
+ opts. optopt ( "" , "start_index " , "block txs api call" , "START_INDEX " ) ;
356
356
357
357
opts. optopt ( "" , "blocks" , "block txids api call" , "BLOCKS_START_HEIGHT" ) ;
358
358
opts. optopt ( "" , "blocks_bulk" , "block txids api call" , "BLOCKS_BULK" ) ;
@@ -491,8 +491,8 @@ impl Args {
491
491
}
492
492
if matches. opt_present ( "block_txs" ) {
493
493
let arg_block_txs = matches. opt_str ( "block_txs" ) ; //expect a block_hash
494
- let arg_block_start_index = matches. opt_str ( "block_start_index " ) ;
495
- block_txs ( & arg_block_txs. unwrap ( ) , & arg_block_start_index . unwrap ( ) ) ;
494
+ let arg_start_index = matches. opt_str ( "start_index " ) ;
495
+ block_txs ( & arg_block_txs. unwrap ( ) , & arg_start_index . unwrap ( ) ) ;
496
496
std:: process:: exit ( 0 ) ;
497
497
}
498
498
if matches. opt_present ( "blocks" ) {
@@ -597,7 +597,7 @@ impl Args {
597
597
// BLOCK BLOCK_HASH TXS
598
598
// https://mempool.space/api/block/<block_hash>/<txs>
599
599
block_txs : matches. opt_str ( "block_txs" ) ,
600
- block_start_index : matches. opt_str ( "block_start_index " ) ,
600
+ start_index : matches. opt_str ( "start_index " ) ,
601
601
602
602
// V1 BLOCKS
603
603
// https://mempool.space/api/v1/blocks/<BLOCK_HEIGHT>"
0 commit comments