Parameters
- addressstringREQUIRED
The Bitcoin Cash address to validate
Returns
- resultobject
The result is a JSON object with the following fields:
- isvalidboolean
If the address is valid or not
- addressstring
(Optional) The validated Bitcoin Cash address
- scriptPubKeystring
(Optional) The hex encoded scriptPubKey generated by the address
- isscriptboolean
(Optional) It verifies if the key is a script or not
- istokenawareboolean
(Optional) If the address supports CashTokens
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
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