decoderawtransaction

Decodes a serialized, hex-encoded Bitcoin transaction. Returns detailed information about inputs, outputs, size, witness data, etc.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
hexstringstringRequiredformat: "^[a-fA-F0-9]+$"

The transaction hex string to decode.

iswitnessbooleanRequired

Indicates whether the transaction includes witness data. If omitted, heuristic decoding is applied.

Response

A JSON object representing the decoded transaction.

txidstringOptionalformat: "^[a-fA-F0-9]{64}$"

A 64-character hex string identifying a transaction.

hashstringOptional

The transaction hash (differs from txid for witness transactions).

sizeintegerOptional
vsizeintegerOptional
weightintegerOptional
versionintegerOptional
locktimeintegerOptional
vinlist of objectsOptional
voutlist of objectsOptional