Skip to main content

eth_getRawTransactionByBlockNumberAndIndex RPC Method

Returns the raw, RLP-encoded transaction data for the transaction at the given block number and transaction index position.

Updated on
Nov 02, 2026

Parameters

blockNumber
string
REQUIRED

The block number as a string in hexadecimal format or a tag such as latest, earliest, pending, safe, or finalized

index
string
REQUIRED

An integer of the transaction index position encoded as a hexadecimal

Returns

result
string

The raw, RLP-encoded transaction as a hex string, or null if no transaction is found.

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