Skip to main content

validateaddress

validateaddress "address"

Return information about the given yerbas address.

yerbas-cli validateaddress "XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwg"

Arguments

ArgumentTypeDescription
"address"(string)The yerbas address to validate
Arguments:
1. "address" (string, required) The yerbas address to validate

Output

ResultTypeDescription
.........
Result:
{
"isvalid" : true|false, (boolean) If the address is valid or not. If not, this is the only property returned.
"address" : "address", (string) The yerbas address validated
"scriptPubKey" : "hex", (string) The hex encoded scriptPubKey generated by the address
"ismine" : true|false, (boolean) If the address is yours or not
"iswatchonly" : true|false, (boolean) If the address is watchonly
"isscript" : true|false, (boolean) If the key is a script
"script" : "type" (string, optional) The output script type. Possible types: nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata
"hex" : "hex", (string, optional) The redeemscript for the p2sh address
"addresses" (string, optional) Array of addresses associated with the known redeemscript
[
"address"
,...
]
"sigsrequired" : xxxxx (numeric, optional) Number of signatures required to spend multisig output
"pubkey" : "publickeyhex", (string) The hex value of the raw public key
"iscompressed" : true|false, (boolean) If the address is compressed
"account" : "account" (string) DEPRECATED. The account associated with the address, "" is the default account
"timestamp" : timestamp, (number, optional) The creation time of the key if available in seconds since epoch (Jan 1 1970 GMT)
"hdkeypath" : "keypath" (string, optional) The HD keypath if the key is HD and available
"hdchainid" : "<hash>" (string, optional) The ID of the HD chain
}

Examples

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwg"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/