Skip to content
Alchemy Logo

getrawtransaction

POST
/{apiKey}

Returns the raw transaction representation for a given transaction ID (txid). If verbose is true, returns a JSON object with detailed information; otherwise, returns a serialized hex-encoded string.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

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

The transaction ID to fetch.

booleanoptionaldefaults to false

Return verbose JSON or just the raw hex string.

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

The block in which to look for the transaction (if not in the mempool).

Responses

200

Raw transaction data.

Was this page helpful?