Skip to main content

eth_getTransactionByBlockHashAndIndex RPC Method

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

Updated on
Oct 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

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

blockHash
string

The hash of the block containing this transaction. null when pending

blockNumber
string

The block number containing this transaction. null when pending

blockTimestamp
string

Timestamp of the block containing this transaction, encoded as a hexadecimal quantity

from
string

The address of the sender

gas
string

The gas provided by the sender encoded as hexadecimal

gasPrice
string

The gas price provided by the sender in wei encoded as hexadecimal

hash
string

The hash of the transaction

input
string

The data sent along with the transaction

nonce
string

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

to
string

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

transactionIndex
string

The index position of the transaction in the block encoded as hexadecimal. null when pending

value
string

The value transferred in wei encoded as hexadecimal

type
string

The transaction type encoded as a hexadecimal

chainId
string

The chain ID

v
string

The V field of the transaction signature encoded as hexadecimal

r
string

The R field of the transaction signature

s
string

The S field of the transaction signature

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x0f51457c6063a7e37360e528c2ccf2bb18528ccac1a15167c7a3822c0818fc0b",
6
"blockNumber": "0x92bef3",
7
"blockTimestamp": "0x6ad108ef",
8
"from": "0x00000000000000000000000000000000000a4b05",
9
"gas": "0x0",
10
"gasPrice": "0x0",
11
"hash": "0x5f70ae588b0ae25c7d7ab5c1b5c45a860084cbcb7d5f66035a731dc98fa2f1a1",
12
"input": "0x6bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe2390000000000000000000000000000000000000000000000000000000000092bef30000000000000000000000000000000000000000000000000000000000000000",
13
"nonce": "0x0",
14
"to": "0x00000000000000000000000000000000000a4b05",
15
"transactionIndex": "0x0",
16
"value": "0x0",
17
"type": "0x6a",
18
"chainId": "0x185d9",
19
"v": "0x0",
20
"r": "0x0",
21
"s": "0x0"
22
}
23
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x0f51457c6063a7e37360e528c2ccf2bb18528ccac1a15167c7a3822c0818fc0b",
6
"blockNumber": "0x92bef3",
7
"blockTimestamp": "0x6ad108ef",
8
"from": "0x00000000000000000000000000000000000a4b05",
9
"gas": "0x0",
10
"gasPrice": "0x0",
11
"hash": "0x5f70ae588b0ae25c7d7ab5c1b5c45a860084cbcb7d5f66035a731dc98fa2f1a1",
12
"input": "0x6bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe2390000000000000000000000000000000000000000000000000000000000092bef30000000000000000000000000000000000000000000000000000000000000000",
13
"nonce": "0x0",
14
"to": "0x00000000000000000000000000000000000a4b05",
15
"transactionIndex": "0x0",
16
"value": "0x0",
17
"type": "0x6a",
18
"chainId": "0x185d9",
19
"v": "0x0",
20
"r": "0x0",
21
"s": "0x0"
22
}
23
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free