Parameters
- hexstringstringREQUIRED
The hex-encoded script to decode
Returns
- resultobject
The decoded script object
- asmstring
The script public key in the form of string
- reqSigsinteger
The required signatures
- typestring
The output type (e.g. pubkeyhash)
- addressesarray
Array of Bitcoin Cash addresses
- p2shstring
Address of the P2SH script wrapping this redeem script
- p2sh_32string
Address of the P2SH-32 script wrapping this redeem script
- 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"asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",4"reqSigs": 1,5"type": "pubkeyhash",6"addresses": [7"bitcoincash:qzhe9tvcclmh2k0evscdlme2dqzms7eylqhcjc69c7"8],9"p2sh": "bitcoincash:pzj0upxsxueh05m4h7plyfawtvc48kap8gwc3celzw",10"p2sh_32": "bitcoincash:pdkp09cua608qr454ne30uxu47lfmafwwlfyjqf8vtmu83dfvfvtq9tnmatkk"11},12"error": null,13"id": 114}
1{2"result": {3"asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",4"reqSigs": 1,5"type": "pubkeyhash",6"addresses": [7"bitcoincash:qzhe9tvcclmh2k0evscdlme2dqzms7eylqhcjc69c7"8],9"p2sh": "bitcoincash:pzj0upxsxueh05m4h7plyfawtvc48kap8gwc3celzw",10"p2sh_32": "bitcoincash:pdkp09cua608qr454ne30uxu47lfmafwwlfyjqf8vtmu83dfvfvtq9tnmatkk"11},12"error": null,13"id": 114}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free