bitcoind.app
CommandsGuidesContact ↗
Home/Rawtransactions/decoderawtransaction
Rawtransactions

decoderawtransaction

Return a JSON object representing the serialized, hex-encoded transaction.

Parameters

hexstringstringREQUIRED
The transaction hex string
iswitnessbooleanoptional
Whether the transaction hex is a serialized witness transaction

Returns

objectDecoded transaction

Code Examples

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

Example Response

{
  "txid": "a1075db55d...",
  "version": 2,
  "size": 225,
  "vsize": 141,
  "weight": 561,
  "locktime": 0,
  "vin": [...],
  "vout": [...]
}
← Previous
decodepsbt
Next →
decodescript

More Rawtransactions Commands

analyzepsbtcombinepsbtcombinerawtransactionconverttopsbtcreatepsbtcreaterawtransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗