bitcoind.app
CommandsGuidesContact ↗
Home/Rawtransactions/decodescript
Rawtransactions

decodescript

Decode a hex-encoded script.

Parameters

hexstringstringREQUIRED
The hex-encoded script

Returns

objectDecoded script

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"decodescript","params":["hex"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "asm": "OP_DUP OP_HASH160 ... OP_EQUALVERIFY OP_CHECKSIG",
  "type": "pubkeyhash",
  "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
  "p2sh": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy"
}
← Previous
decoderawtransaction
Next →
finalizepsbt

More Rawtransactions Commands

analyzepsbtcombinepsbtcombinerawtransactionconverttopsbtcreatepsbtcreaterawtransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗