z_validateaddress - Zcash 5.10.0 RPC

z_validateaddress "address"

Return information about the given address.

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

Result:
{
  "isvalid" : true|false,        (boolean) If the address is valid or not. If not, this is the only property returned.
  "address" : "addr",          (string) The address validated
  "address_type" : "xxxx",     (string) "p2pkh", "p2sh", "sprout" or "sapling"
  "type" : "xxxx",             (string) "p2pkh", "p2sh", "sprout" or "sapling" (DEPRECATED, legacy attribute)
  "ismine" : true|false,         (boolean) If the address is yours or not
  "payingkey" : "hex",         (string) [sprout] The hex value of the paying key, a_pk
  "transmissionkey" : "hex",   (string) [sprout] The hex value of the transmission key, pk_enc
  "diversifier" : "hex",       (string) [sapling] The hex value of the diversifier, d
  "diversifiedtransmissionkey" : "hex", (string) [sapling] The hex value of pk_d
}

Examples:
> zcash-cli z_validateaddress "zcWsmqT4X2V4jgxbgiCzyrAfRT1vi1F4sn7M5Pkh66izzw8Uk7LBGAH3DtcSMJeUb2pi3W4SQF8LMKkU2cUuVP68yAGcomL"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_validateaddress", "params": ["zcWsmqT4X2V4jgxbgiCzyrAfRT1vi1F4sn7M5Pkh66izzw8Uk7LBGAH3DtcSMJeUb2pi3W4SQF8LMKkU2cUuVP68yAGcomL"] }' -H 'content-type: text/plain;' http://127.0.0.1:8232/


Maintained by @_garethtdavies; modified by: mdr0id;license of the docs is MIT (see zcash repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet zcash node