decodescript RPC Method
Parameters
hexstring
string
REQUIRED
Loading...
Returns
result
object
Loading...
asm
string
Loading...
reqSigs
integer
Loading...
type
string
Loading...
addresses
array
Loading...
p2sh
string
Loading...
p2sh_32
string
Loading...
error
string
Loading...
id
integer
Loading...
Request
1curl -X POST "https://docs-demo.bch-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "decodescript",6"params": [7"76a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac"8],9"id": 110}'
1curl -X POST "https://docs-demo.bch-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "decodescript",6"params": [7"76a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac"8],9"id": 110}'
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