Skip to main content

eth_getTransactionByBlockHashAndIndex RPC Method

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

Updated on
Aug 31, 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 where this log was in. null when it's a pending log

blockNumber
string

The block number where this log was in. null when it's a pending log

blockTimestamp
string

The timestamp of the block where this transaction was included, encoded as hexadecimal

depositReceiptVersion
string

The version of a deposit receipt

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

mint
string

The minting event associated with the transaction

nonce
string

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

r
string

The R field of the signature

s
string

The S field of the signature

sourceHash
string

The hash of the source transaction that created this transaction

to
string

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

transactionIndex
string

The integer of the transaction's index position that the log was created from. null when it's a pending log

type
string

The transaction type

v
string

The standardized V field of the signature

value
string

The value transferred in wei encoded as hexadecimal

yParity
string

The parity of the y-value of the secp256k1 signature, encoded as hexadecimal.

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"blockHash": "0x415aac98a7007e1e40980402bf6c52c077dd8d2e137dfea24da702b04486bf26",
5
"blockNumber": "0x205203b",
6
"blockTimestamp": "0x6a870c97",
7
"depositReceiptVersion": "0x1",
8
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
9
"gas": "0xf4240",
10
"gasPrice": "0x0",
11
"hash": "0xf195555ac15f2c4c77f0256f092633ae39395c81a1345bdf51dc029e3a393992",
12
"input": "0x3db6be2b00000558000c3c9d0000000000000000000000006a870c440000000000afed6d00000000000000000000000000000000000000000000000000000000396b08e40000000000000000000000000000000000000000000000000000000003e06a9ce5d14bf21ebe80b3b37518cb46126768a8057c6bbf1d22198a640785d4d85fc70000000000000000000000001caaaa58002a7e8b4c6f427ac2c943767b4d6cd70000000000000000000000000190",
13
"mint": "0x0",
14
"nonce": "0x2052059",
15
"r": "0x0",
16
"s": "0x0",
17
"sourceHash": "0xec39cc33f5f4653dc1684028ec571ad6cc61f4ae94a7960b5222bd1e5a2795ea",
18
"to": "0x4200000000000000000000000000000000000015",
19
"transactionIndex": "0x0",
20
"type": "0x7e",
21
"v": "0x0",
22
"value": "0x0",
23
"yParity": "0x0"
24
},
25
"id": 1
26
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"blockHash": "0x415aac98a7007e1e40980402bf6c52c077dd8d2e137dfea24da702b04486bf26",
5
"blockNumber": "0x205203b",
6
"blockTimestamp": "0x6a870c97",
7
"depositReceiptVersion": "0x1",
8
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
9
"gas": "0xf4240",
10
"gasPrice": "0x0",
11
"hash": "0xf195555ac15f2c4c77f0256f092633ae39395c81a1345bdf51dc029e3a393992",
12
"input": "0x3db6be2b00000558000c3c9d0000000000000000000000006a870c440000000000afed6d00000000000000000000000000000000000000000000000000000000396b08e40000000000000000000000000000000000000000000000000000000003e06a9ce5d14bf21ebe80b3b37518cb46126768a8057c6bbf1d22198a640785d4d85fc70000000000000000000000001caaaa58002a7e8b4c6f427ac2c943767b4d6cd70000000000000000000000000190",
13
"mint": "0x0",
14
"nonce": "0x2052059",
15
"r": "0x0",
16
"s": "0x0",
17
"sourceHash": "0xec39cc33f5f4653dc1684028ec571ad6cc61f4ae94a7960b5222bd1e5a2795ea",
18
"to": "0x4200000000000000000000000000000000000015",
19
"transactionIndex": "0x0",
20
"type": "0x7e",
21
"v": "0x0",
22
"value": "0x0",
23
"yParity": "0x0"
24
},
25
"id": 1
26
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free