Skip to main content

eth_getRawTransactionByBlockHashAndIndex RPC Method

Returns the RLP-encoded transaction at the specified block and index.

Updated on
Oct 15, 2026

Parameters

blockHash
string
REQUIRED

The hash of the block containing the transaction

transactionIndex
string
REQUIRED

The index of the transaction in the block, encoded as hexadecimal

Returns

result
string

The RLP-encoded transaction, or null if no transaction matches

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 4,
4
"result": "0x6af88a830185d9b8846bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe240a000000000000000000000000000000000000000000000000000000000092c2100000000000000000000000000000000000000000000000000000000000000000"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 4,
4
"result": "0x6af88a830185d9b8846bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe240a000000000000000000000000000000000000000000000000000000000092c2100000000000000000000000000000000000000000000000000000000000000000"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free