Parameters
address
string
REQUIRED
The Bitcoin Cash address to validate
Returns
result
object
The result is a JSON object with the following fields:
isvalid
boolean
If the address is valid or not
address
string
(Optional) The validated Bitcoin Cash address
scriptPubKey
string
(Optional) The hex encoded scriptPubKey generated by the address
isscript
boolean
(Optional) It verifies if the key is a script or not
istokenaware
boolean
(Optional) If the address supports CashTokens
error
object | null
JSON-RPC error object when the request failed, or null on success
id
integer
The JSON-RPC request identifier
Request
Response
1{2"result": {3"isvalid": true,4"address": "bitcoincash:qqxd965lnrwkdklp3culyrqy7xme2msancyrc6kt37",5"scriptPubKey": "76a9140cd2ea9f98dd66dbe18e39f20c04f1b7956e1d9e88ac",6"isscript": false,7"istokenaware": false8},9"error": null,10"id": 111}
1{2"result": {3"isvalid": true,4"address": "bitcoincash:qqxd965lnrwkdklp3culyrqy7xme2msancyrc6kt37",5"scriptPubKey": "76a9140cd2ea9f98dd66dbe18e39f20c04f1b7956e1d9e88ac",6"isscript": false,7"istokenaware": false8},9"error": null,10"id": 111}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free