validateaddress ( RPC)

validateaddress "address"

Return information about the given bitcoin address.

1. address    (string, required) The bitcoin address to validate

  "isvalid" : true|false,       (boolean) If the address is valid or not. If not, this is the only property returned.
  "isvalid_parent" : true|false (boolean) If the address is valid or not for parent chain. Valid or not, no additional details will be appended unlike `isvalid`.
  "address" : "address",        (string) The bitcoin address validated
  "scriptPubKey" : "hex",       (string) The hex-encoded scriptPubKey generated by the address
  "isscript" : true|false,      (boolean) If the key is a script
  "iswitness" : true|false,     (boolean) If the address is a witness address
  "witness_version" : version   (numeric, optional) The version number of the witness program
  "witness_program" : "hex"     (string, optional) The hex value of the witness program
  "confidential_key" : "hex", (string) The hex value of the raw blinding public key for that address, if any. "" if none.
  "unconfidential" : "address", (string) The address without confidentiality key.
   "parent_address_info":         (obj) If the address isvalid_parent, this object contains details about the parent address type.
       "address" : "address",
       "scriptPubKey" : "hex",

> elements-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;'