Skip to main content

eth_getTransactionByBlockNumberAndIndex RPC Method

Returns information about a transaction given a block number and transaction index position.

Updated on
Mar 17, 2026

Parameters

blockNumber
string
REQUIRED

The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators

index
string
REQUIRED

An integer of the transaction index position encoded as a hexadecimal

Returns

result
object

The transaction object, or null if no transaction is found

blockHash
string

The hash of the block containing this transaction. null if the transaction is pending

blockNumber
string

The block number containing this transaction, encoded as hexadecimal. null if the transaction is pending

from
string

The sender address

gas
string

The gas limit provided by the sender, encoded as hexadecimal

gasPrice
string

The gas price in wei, encoded as hexadecimal

hash
string

The transaction hash

input
string

The transaction input data

nonce
string

The number of transactions sent from the sender before this one, encoded as hexadecimal

to
string

The recipient address. null if this is a contract creation transaction

transactionIndex
string

The transaction index within the block, encoded as hexadecimal. null if the transaction is pending

value
string

The value transferred in wei, encoded as hexadecimal

type
string

The transaction type, encoded as hexadecimal

chainId
string

The chain ID, encoded as hexadecimal

v
string

The signature recovery parameter, encoded as hexadecimal

r
string

The R component of the signature

s
string

The S component of the signature

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free