validateaddress RPC Method
Parameters
address
string
REQUIRED
The bitcoin address to validate
Returns
result
The result is a JSON object with the following fields:
isvalid
If the address is valid or not
address
The validated bitcoin address
scriptPubKey
The hex encoded scriptPubKey generated by the address
isscript
It verifies if the key is a script or not
iswitness
It verifies if the address is a witness address or not
witness_version
The version number of the witness program
witness_program
The hex value of the witness program
error
The error message, if any
Request
1curl https://docs-demo.btc.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method": "validateaddress", "params": ["bc1q5hy2fmqr7ua0a6rj6scekgszctxmlts8smwxcl"]}'5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free