Skip to main content

eth_getTransactionByBlockHashAndIndex RPC Method

Returns information about a transaction given a blockhash and transaction index position.

Updated on
Jun 15, 2026

Parameters

blockHash
string
REQUIRED

The block hash

index
string
REQUIRED

An integer of the transaction index position encoded as a hexadecimal

Returns

object
object | null

The transaction response object, or null if no transaction is found

blockHash
string

Hash of the block that includes this transaction, null if pending

blockNumber
string

Block number where this transaction was included encoded as a hexadecimal string, null if pending

from
string

Address of the transaction sender

gas
string

Gas limit provided by the sender encoded as a hexadecimal string

gasPrice
string

Gas price provided by the sender in wei encoded as a hexadecimal string; may appear alongside EIP-1559 fee fields

maxFeePerGas
string

(Optional) Maximum total fee per gas in wei encoded as a hexadecimal string (EIP-1559)

maxPriorityFeePerGas
string

(Optional) Maximum priority fee per gas in wei encoded as a hexadecimal string (EIP-1559)

hash
string

Hash of the transaction

input
string

Hex-encoded calldata sent with the transaction

nonce
string

Number of transactions sent by the sender before this one encoded as a hexadecimal string

to
string

Receiver address, null if the transaction creates a contract

transactionIndex
string

Index position of the transaction within the block encoded as a hexadecimal string, null if pending

value
string

Amount of wei transferred encoded as a hexadecimal string

type
string

The transaction type as a hexadecimal string (e.g., 0x2 for EIP-1559)

chainId
string

Chain ID encoded as a hexadecimal string

v
string

Recovery identifier or y-parity value (0x0 or 0x1) for the signature

r
string

R component of the transaction signature

s
string

S component of the transaction signature

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