Skip to main content

eth_getTransactionByBlockHashAndIndex RPC Method

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

Updated on
Mar 27, 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

type
string

The transaction type such as 0x0 for legacy, 0x1 for EIP-2930, 0x2 for EIP-1559

chainId
string

The chain ID of the blockchain encoded as hexadecimal

nonce
string

The number of transactions made by the sender before this one encoded as hexadecimal

gasPrice
string

(Optional) The legacy gas price in wei encoded as hexadecimal, present for legacy type 0x0 transactions and may be omitted for EIP-1559 transactions

maxFeePerGas
string

(Optional) The max total fee per gas (EIP-1559) encoded as hexadecimal, present for type 0x2 transactions

maxPriorityFeePerGas
string

(Optional) The max priority fee per gas (EIP-1559) encoded as hexadecimal, present for type 0x2 transactions

gas
string

The gas provided by the sender encoded as hexadecimal

to
string | null

The address of the receiver. null when it's a contract creation transaction

value
string

The value transferred in wei encoded as hexadecimal

accessList
array

(Optional) The access list for EIP-2930 or EIP-1559 transactions, may be omitted or an empty array

input
string

The data sent along with the transaction

r
string

The R field of the signature

s
string

The S field of the signature

yParity
string

(Optional) The parity bit of the signature used by typed transactions, mutually exclusive with v

v
string

(Optional) The V field of the signature used by legacy transactions, mutually exclusive with yParity

hash
string

The hash of the transaction

blockHash
string | null

The hash of the block containing this transaction, null when it's a pending transaction

blockNumber
string | null

The block number containing this transaction, null when it's a pending transaction

transactionIndex
string | null

The index position of this transaction in the block, null when it's a pending transaction

from
string

The address of the sender

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x0",
6
"chainId": "0x2611",
7
"nonce": "0x21",
8
"gasPrice": "0x47868c08",
9
"gas": "0x8b660",
10
"to": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",
11
"value": "0x0",
12
"input": "0x0894edf10000000000000000000000000000000000000000000000000000000000000040b3bbc654ddb7cedf11959fdd74bbbd6d25d744063afa2225a3b9d3967b5f64ad0000000000000000000000000000000000000000000000000000000000000051010000000000000003000075950000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000076af0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000000000000000000000000000000",
13
"r": "0xf9b78f608c0d8cebc7c00a09848fbdf9917e69712dcfb198835d07986018887f",
14
"s": "0x5fc5c63512ed7a029f14e5c72f42f5bfb96f547aab382cbc1346ec7e01466962",
15
"v": "0x4c46",
16
"hash": "0x06c5343a6ec751c7bfc6117bad86603f3250f621de80ef648f8b99d3645862bd",
17
"blockHash": "0x1d16a52d4794f9199b5abc67213c8564518419638766d12f275aba08e4f107c7",
18
"blockNumber": "0xb9f70",
19
"transactionIndex": "0x0",
20
"from": "0xe93685f3bba03016f02bd1828badd6195988d950"
21
}
22
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x0",
6
"chainId": "0x2611",
7
"nonce": "0x21",
8
"gasPrice": "0x47868c08",
9
"gas": "0x8b660",
10
"to": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",
11
"value": "0x0",
12
"input": "0x0894edf10000000000000000000000000000000000000000000000000000000000000040b3bbc654ddb7cedf11959fdd74bbbd6d25d744063afa2225a3b9d3967b5f64ad0000000000000000000000000000000000000000000000000000000000000051010000000000000003000075950000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000076af0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000000000000000000000000000000",
13
"r": "0xf9b78f608c0d8cebc7c00a09848fbdf9917e69712dcfb198835d07986018887f",
14
"s": "0x5fc5c63512ed7a029f14e5c72f42f5bfb96f547aab382cbc1346ec7e01466962",
15
"v": "0x4c46",
16
"hash": "0x06c5343a6ec751c7bfc6117bad86603f3250f621de80ef648f8b99d3645862bd",
17
"blockHash": "0x1d16a52d4794f9199b5abc67213c8564518419638766d12f275aba08e4f107c7",
18
"blockNumber": "0xb9f70",
19
"transactionIndex": "0x0",
20
"from": "0xe93685f3bba03016f02bd1828badd6195988d950"
21
}
22
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free