Skip to content

eth_getRawTransactionByHash ​

served · same as reth

Returns a transaction by its hash in its signed, encoded form (EIP-2718).

When to use ​

Use it to get the exact bytes of a transaction, for example to send it again to another node.

Example ​

bash
curl -s -X POST -H 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getRawTransactionByHash", "params": ["0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16"]}' \
  http://127.0.0.1:8547
json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getRawTransactionByHash",
  "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"
}

Full response

Parameters ​

NameTypeRequiredMeaning
transactionHash32-byte hashyesThe hash of the transaction.

Returns ​

The encoded transaction as hex data, or null when the node does not know it.

Notes and limits ​

  • A pool transaction comes from the pool. A blob transaction in the pool includes its blobs (the network form).
  • The node finds transactions in blocks from its start block.

Errors ​

CodeMessageWhen
-32602Invalid paramsA 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.

eth_getTransactionByHash, debug_getRawTransaction.

Schema (OpenRPC) ​

Parameter hash: Hash32
json
{
  "title": "32 byte hex value",
  "type": "string",
  "pattern": "^0x[0-9a-f]{64}$"
}
Result: Bytes or null
json
{
  "oneOf": [
    {
      "title": "hex encoded bytes",
      "type": "string",
      "pattern": "^0x[0-9a-f]*$"
    },
    {
      "type": "null"
    }
  ]
}