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-demoFor higher throughput, create your own API key
Request
string
format: "^[a-fA-F0-9]{64}$"requiredThe transaction ID to fetch.
booleanoptionaldefaults to
falseReturn verbose JSON or just the raw hex string.
string
format: "^[a-fA-F0-9]{64}$"optionalThe block in which to look for the transaction (if not in the mempool).
Responses
200
Raw transaction data.
Was this page helpful?