Skip to content

Commit f2f1d0a

Browse files
committed
document script-based return fields for validateaddress
1 parent 8c2098a commit f2f1d0a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/rpc/misc.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ UniValue validateaddress(const JSONRPCRequest& request)
174174
" \"ismine\" : true|false, (boolean) If the address is yours or not\n"
175175
" \"iswatchonly\" : true|false, (boolean) If the address is watchonly\n"
176176
" \"isscript\" : true|false, (boolean) If the key is a script\n"
177+
" \"script\" : \"type\" (string, optional) The output script type. Possible types: nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_keyhash, witness_v0_scripthash\n"
178+
" \"hex\" : \"hex\", (string, optional) The redeemscript for the p2sh address\n"
179+
" \"addresses\" (string, optional) Array of addresses associated with the known redeemscript\n"
180+
" [\n"
181+
" \"address\"\n"
182+
" ,...\n"
183+
" ]\n"
184+
" \"sigsrequired\" : xxxxx (numeric, optional) Number of signatures required to spend multisig output\n"
177185
" \"pubkey\" : \"publickeyhex\", (string) The hex value of the raw public key\n"
178186
" \"iscompressed\" : true|false, (boolean) If the address is compressed\n"
179187
" \"account\" : \"account\" (string) DEPRECATED. The account associated with the address, \"\" is the default account\n"

0 commit comments

Comments
 (0)