Parameters
- hexstringstringREQUIRED
The hex-encoded script
Returns
- resultobject
The decoded script object
- asmstring
The script public key in the form of string
- descstring
Descriptor for the script
- addressstring
Bitcoin address for this script
- typestring
The output type. This can be any one of the following: nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_scripthash, witness_v0_keyhash, witness_v1_taproot or witness_unknown
- p2shstring
An address of the P2SH script wrapping this redeem script (not returned if the script is already a P2SH)
- segwitobject
The result of a witness script public key wrapping this redeem script (not returned if the script is a P2SH or witness)
- asmstring
The script public key in the form of string
- descstring
Witness descriptor
- hexstring
The hex of the script's public key in string format
- addressstring
Witness address
- typestring
The type of the script public key
- p2sh-segwitstring
An address of the P2SH script wrapping this witness redeem script
- reqSigsstring
The required signatures
- addressesarray
JSON array of addresses
- strstring
The segwit address
- reqSigsinteger
(Optional) The required signatures
- addressesarray
(Optional) A JSON array of addresses used in the transaction
- strstring
The bitcoin address
- p2sh_32string
(Optional) P2SH-32 address when applicable
- errorobject | null
(Optional) JSON-RPC error when the request failed; omitted or null on success
- codeinteger
Error code
- messagestring
Error message
1{2"jsonrpc": "2.0",3"result": {4"asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",5"desc": "addr(1H1LxwmSw6f82AeHcQvNcupXjD9nKqQXLd)#m3zmae6u",6"address": "1H1LxwmSw6f82AeHcQvNcupXjD9nKqQXLd",7"type": "pubkeyhash",8"p2sh": "3GjR3YFueMLUqufNmCn8uZF48LYXiUn2nr",9"segwit": {10"asm": "0 af92ad98c7f77559f96430dfef2a6805b87b24f8",11"desc": "addr(bc1q47f2mxx87a64n7tyxr0772ngqku8kf8cmd9d27)#g0l3qavj",12"hex": "0014af92ad98c7f77559f96430dfef2a6805b87b24f8",13"address": "bc1q47f2mxx87a64n7tyxr0772ngqku8kf8cmd9d27",14"type": "witness_v0_keyhash",15"p2sh-segwit": "39LsCEAz9RgxMsofDEZFggVjUpNsQojhsi"16}17},18"id": 119}
1{2"jsonrpc": "2.0",3"result": {4"asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",5"desc": "addr(1H1LxwmSw6f82AeHcQvNcupXjD9nKqQXLd)#m3zmae6u",6"address": "1H1LxwmSw6f82AeHcQvNcupXjD9nKqQXLd",7"type": "pubkeyhash",8"p2sh": "3GjR3YFueMLUqufNmCn8uZF48LYXiUn2nr",9"segwit": {10"asm": "0 af92ad98c7f77559f96430dfef2a6805b87b24f8",11"desc": "addr(bc1q47f2mxx87a64n7tyxr0772ngqku8kf8cmd9d27)#g0l3qavj",12"hex": "0014af92ad98c7f77559f96430dfef2a6805b87b24f8",13"address": "bc1q47f2mxx87a64n7tyxr0772ngqku8kf8cmd9d27",14"type": "witness_v0_keyhash",15"p2sh-segwit": "39LsCEAz9RgxMsofDEZFggVjUpNsQojhsi"16}17},18"id": 119}