Appearance
debug_getRawTransaction
served · same as reth
Returns a transaction by its hash in its signed, encoded form (EIP-2718).
When to use
Use it as eth_getRawTransactionByHash. The two methods give the same answer.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "debug_getRawTransaction", "params": ["0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16"]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "debug_getRawTransaction",
"params": [
"0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16"
]
}Response
Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x02f903700183025c3080841570de41830711a4940000000aa232009084bd71a5797d089aa4edfad480b9030409c5eabe000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002bd0000cca0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000082bedcbe00000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead908... 1370 more characters"
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
transactionHash | 32-byte hash | yes | The hash of the transaction. |
Returns
The encoded transaction as hex data, or null when the node does not know it.
Errors
| Code | Message | When |
|---|---|---|
| -32602 | Invalid params | A parameter is missing or does not parse. data has the text of reth, with the position. |
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
Schema (OpenRPC)
The official specification: debug_getRawTransaction in ethereum/execution-apis.
Parameter Transaction hash: string
json
{
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 byte hex value",
"type": "string"
}Result: string
json
{
"pattern": "^0x[0-9a-f]*$",
"title": "hex encoded bytes",
"type": "string"
}