decoderawtransaction
Decodes a serialized, hex-encoded Bitcoin transaction. Returns detailed information about inputs, outputs, size, witness data, etc.
Path parameters
apiKey
Request
This endpoint expects an object.
hexstring
The transaction hex string to decode.
iswitness
Indicates whether the transaction includes witness data. If omitted, heuristic decoding is applied.
Response
A JSON object representing the decoded transaction.
txid
A 64-character hex string identifying a transaction.
hash
The transaction hash (differs from txid for witness transactions).
size
vsize
weight
version
locktime
vin
vout