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
"result": "0x02f8705184010678e58518e9b26e008518e9b26e46825208945cfce8669c672df27e3d6cad41859328932ec2788080c080a0a85503146ddfd7bc9e6c323c5d72453d3aefd9992a19d4616d472c9c6ea3c7cea02b940b3199c5563f1f0b52a559148babb6766af504c1d3330f283cf77248e0cd",
4
"id": 1
5
}
1
{
2
"jsonrpc": "2.0",
3
"result": "0x02f8705184010678e58518e9b26e008518e9b26e46825208945cfce8669c672df27e3d6cad41859328932ec2788080c080a0a85503146ddfd7bc9e6c323c5d72453d3aefd9992a19d4616d472c9c6ea3c7cea02b940b3199c5563f1f0b52a559148babb6766af504c1d3330f283cf77248e0cd",
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free