@@ -3708,6 +3708,8 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
3708
3708
return NullUniValue;
3709
3709
}
3710
3710
3711
+ const std::string example_address = " \" bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" " ;
3712
+
3711
3713
RPCHelpMan{" getaddressinfo" ,
3712
3714
" \n Return information about the given bitcoin address.\n "
3713
3715
" Some of the information will only be present if the address is in the active wallet.\n " ,
@@ -3758,8 +3760,8 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
3758
3760
" }\n "
3759
3761
},
3760
3762
RPCExamples{
3761
- HelpExampleCli (" getaddressinfo" , " \" bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl \" " ) +
3762
- HelpExampleRpc (" getaddressinfo" , " \" bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl \" " )
3763
+ HelpExampleCli (" getaddressinfo" , example_address ) +
3764
+ HelpExampleRpc (" getaddressinfo" , example_address )
3763
3765
},
3764
3766
}.Check (request);
3765
3767
@@ -3793,10 +3795,6 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
3793
3795
3794
3796
ret.pushKV (" iswatchonly" , bool (mine & ISMINE_WATCH_ONLY));
3795
3797
3796
- // Return DescribeWalletAddress fields.
3797
- // Always returned: isscript, ischange, iswitness.
3798
- // Optional: witness_version, witness_program, script, hex, pubkeys (array),
3799
- // sigsrequired, pubkey, embedded, iscompressed.
3800
3798
UniValue detail = DescribeWalletAddress (pwallet, dest);
3801
3799
ret.pushKVs (detail);
3802
3800
@@ -3809,8 +3807,6 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
3809
3807
3810
3808
ret.pushKV (" ischange" , pwallet->IsChange (scriptPubKey));
3811
3809
3812
- // Fetch KeyMetadata, if present, for the timestamp, hdkeypath, hdseedid,
3813
- // and hdmasterfingerprint fields.
3814
3810
ScriptPubKeyMan* spk_man = pwallet->GetScriptPubKeyMan (scriptPubKey);
3815
3811
if (spk_man) {
3816
3812
if (const CKeyMetadata* meta = spk_man->GetMetadata (dest)) {
0 commit comments