From: Sandipan Dey Date: Mon, 19 Jul 2021 17:12:44 +0000 (+0530) Subject: Displays transaction details with outputs in case verbose mode is enabled X-Git-Tag: v0.3.0~32 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.FileError.html?a=commitdiff_plain;h=21d8d9fcc150cddefe9e394686d09b5a30c78e2d;p=bdk-cli Displays transaction details with outputs in case verbose mode is enabled --- diff --git a/src/lib.rs b/src/lib.rs index 7a3e551..af54e8e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -344,7 +344,7 @@ pub struct WalletOpts { default_value = "main" )] pub wallet: String, - /// Adds verbosity, returns PSBT in JSON format alongside serialized + /// Adds verbosity, returns PSBT in JSON format alongside serialized, displays expanded objects #[structopt(name = "VERBOSE", short = "v", long = "verbose")] pub verbose: bool, /// Sets the descriptor to use for the external addresses @@ -702,7 +702,9 @@ where match offline_subcommand { GetNewAddress => Ok(json!({"address": wallet.get_address(AddressIndex::New)?})), ListUnspent => Ok(serde_json::to_value(&wallet.list_unspent()?)?), - ListTransactions => Ok(serde_json::to_value(&wallet.list_transactions(false)?)?), + ListTransactions => Ok(serde_json::to_value( + &wallet.list_transactions(wallet_opts.verbose)?, + )?), GetBalance => Ok(json!({"satoshi": wallet.get_balance()?})), CreateTx { recipients,