We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52ef313 commit 73a9824Copy full SHA for 73a9824
src/lib.rs
@@ -902,7 +902,19 @@ where
902
D: BatchDatabase,
903
{
904
match offline_subcommand {
905
- GetNewAddress => Ok(json!({"address": wallet.get_address(AddressIndex::New)?.address})),
+ GetNewAddress => {
906
+ let addr = wallet.get_address(AddressIndex::New)?;
907
+ if wallet_opts.verbose {
908
+ Ok(json!({
909
+ "address": addr.address,
910
+ "index": addr.index
911
+ }))
912
+ } else {
913
914
915
916
+ }
917
918
ListUnspent => Ok(serde_json::to_value(&wallet.list_unspent()?)?),
919
ListTransactions => Ok(serde_json::to_value(
920
&wallet.list_transactions(wallet_opts.verbose)?,
0 commit comments