Skip to content
Alchemy Logo

decoderawtransaction

POST
/{apiKey}

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

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^[a-fA-F0-9]+$"required

The transaction hex string to decode.

booleanoptional

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

Responses

200

A JSON object representing the decoded transaction.

Was this page helpful?