File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -3538,6 +3538,7 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
3538
3538
" \" address\" : \" address\" , (string) The bitcoin address validated\n "
3539
3539
" \" scriptPubKey\" : \" hex\" , (string) The hex-encoded scriptPubKey generated by the address\n "
3540
3540
" \" ismine\" : true|false, (boolean) If the address is yours or not\n "
3541
+ " \" solvable\" : true|false, (boolean) If the address is solvable by the wallet\n "
3541
3542
" \" iswatchonly\" : true|false, (boolean) If the address is watchonly\n "
3542
3543
" \" isscript\" : true|false, (boolean) If the key is a script\n "
3543
3544
" \" iswitness\" : true|false, (boolean) If the address is a witness address\n "
@@ -3592,6 +3593,7 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
3592
3593
isminetype mine = IsMine (*pwallet, dest);
3593
3594
ret.pushKV (" ismine" , bool (mine & ISMINE_SPENDABLE));
3594
3595
ret.pushKV (" iswatchonly" , bool (mine & ISMINE_WATCH_ONLY));
3596
+ ret.pushKV (" solvable" , IsSolvable (*pwallet, scriptPubKey));
3595
3597
UniValue detail = DescribeWalletAddress (pwallet, dest);
3596
3598
ret.pushKVs (detail);
3597
3599
if (pwallet->mapAddressBook .count (dest)) {
You can’t perform that action at this time.
0 commit comments