L0vdL0vd

eth_getRawTransactionByHash

Returns a transaction as raw signed bytes (RLP or typed envelope), ready to decode or rebroadcast.

Archive · Works on any past block

curl https://eth.l0vdinfra.com/YOUR_KEY \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_getRawTransactionByHash","params":["0xbb62ecfc053ce6aa2f12dd09261e27e7c06b46dd015c67e28d5f7200bd6251ac"]}'

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf86b0185104c533c00825208940016c0d0343e8f2c3a7b6a51606b84b1545ec6068733d16ab24750008025a096a1dd0c9729d6340a778a1d5c405f02e25fb2c6eae9f90c2ef30fc7127e50a3a03dd747997bd8aa478bbdf2e242ae481995b061be95bf51…"
}

Long arrays and hex strings are shortened in this example.

Params and your endpoint

Parameters

transactionHashstringrequired
32-byte transaction hash.

Returns

string Raw signed transaction, hex encoded.

When to use it

Get a transaction's exact signed bytes: archive it, verify the signature yourself, or rebroadcast it elsewhere.

How to read the result

Hex of the signed envelope. Decode with viem parseTransaction, ethers Transaction.from or rlp.decode in Python.

Tips

  • For readable fields use eth_getTransactionByHash; this method is for the raw form.

Related methods