Skip to content

Commit bea3afe

Browse files
committed
src/args.rs:--address_txs_chain
1 parent d45d62b commit bea3afe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/args.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ impl Args {
157157
// ADDRESSES
158158
opts.optopt("", "address", "address api call", "ADDRESS");
159159
opts.optopt("", "address_txs", "address_txs api call", "ADDRESS_TXS");
160+
opts.optopt("", "address_txs_chain", "address_txs_chain api call", "ADDRESS_TXS_CHAIN");
160161
opts.optopt("", "address_utxos", "address_utxos api call", "ADDRESS_UTXOS");
161162
opts.optopt("", "validate_address", "validate an address", "VALIDATE_ADDRESS");
162163

@@ -223,6 +224,11 @@ impl Args {
223224
generic_sys_call("address_txs", &address.unwrap());
224225
std::process::exit(0);
225226
}
227+
if matches.opt_present("address_txs_chain") {
228+
let address = matches.opt_str("address_txs_chain");
229+
generic_sys_call("address_txs_chain", &address.unwrap());
230+
std::process::exit(0);
231+
}
226232
if matches.opt_present("validate_address") {
227233
let validate_address = matches.opt_str("validate_address");
228234
generic_sys_call("validate_address", &validate_address.unwrap());

0 commit comments

Comments
 (0)