getrawtransaction

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.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
txidstringRequiredformat: "^[a-fA-F0-9]{64}$"
The transaction ID to fetch.
verbosebooleanOptionalDefaults to false
Return verbose JSON or just the raw hex string.
blockhashstringOptionalformat: "^[a-fA-F0-9]{64}$"

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

Response

Raw transaction data.
string
Raw transaction as hex string.
OR
object