Skip to main content

eth_getTransactionByBlockHashAndIndex RPC Method

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

Updated on
Feb 11, 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

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

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

maxPriorityFeePerGas
string

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)

accessList
array

Optional access list for EIP-2930/1559 transactions

address
string

Address included in the access list

storageKeys
array

Array of 32-byte storage keys accessed by the address

chainId
string

Chain ID encoded as a hexadecimal string

v
string

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

yParity
string

The parity bit of the transaction signature encoded as a hexadecimal string

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": {
5
"blockHash": "0xb0df38c850b7233739baf3981174220ebd30c71a7e9d838d0971123551315a8c",
6
"blockNumber": "0x2b835e",
7
"from": "0x8afdf3cb67d1ff5abfd6f6c137d9e8bcff647593",
8
"gas": "0xf5920",
9
"gasPrice": "0x400746fe00",
10
"maxFeePerGas": "0x400746fe00",
11
"maxPriorityFeePerGas": "0x400746fe00",
12
"hash": "0xd6f3d4564a11f41c48cafd63803922539b0857c132ba3c23c683afaa74edc277",
13
"input": "0xd9facbed00000000000000000000000000000000000000000006f0dad1de3749fdf69b6200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008afdf3cb67d1ff5abfd6f6c137d9e8bcff647593000000000000000000000000000000000000000000000000000000006900ce83000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007c21a90e3ecd3215d16c3bbe76a491f8f792d4bf000000000000000000000000c2af05cfdc44b8b57b0cfacfe6c0c1102069d3e60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a9833699fbb0e3759a3c381deb43a61df99e8544",
14
"nonce": "0xa",
15
"to": "0x422716760d83f89186013d9cc7bfcc482d3e04d2",
16
"transactionIndex": "0x0",
17
"value": "0x4563918244f40000",
18
"type": "0x2",
19
"accessList": [],
20
"chainId": "0x15f900",
21
"v": "0x1",
22
"r": "0xd81f5b9eb89ba971e12aba4b6e07511be282254f3329ec1abd5c8dacd212a753",
23
"s": "0x4f06866990970d79c56fb408eb506b186b51b66dfd507dd616f4404b423a1687",
24
"yParity": "0x0"
25
}
26
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0xb0df38c850b7233739baf3981174220ebd30c71a7e9d838d0971123551315a8c",
6
"blockNumber": "0x2b835e",
7
"from": "0x8afdf3cb67d1ff5abfd6f6c137d9e8bcff647593",
8
"gas": "0xf5920",
9
"gasPrice": "0x400746fe00",
10
"maxFeePerGas": "0x400746fe00",
11
"maxPriorityFeePerGas": "0x400746fe00",
12
"hash": "0xd6f3d4564a11f41c48cafd63803922539b0857c132ba3c23c683afaa74edc277",
13
"input": "0xd9facbed00000000000000000000000000000000000000000006f0dad1de3749fdf69b6200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008afdf3cb67d1ff5abfd6f6c137d9e8bcff647593000000000000000000000000000000000000000000000000000000006900ce83000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007c21a90e3ecd3215d16c3bbe76a491f8f792d4bf000000000000000000000000c2af05cfdc44b8b57b0cfacfe6c0c1102069d3e60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a9833699fbb0e3759a3c381deb43a61df99e8544",
14
"nonce": "0xa",
15
"to": "0x422716760d83f89186013d9cc7bfcc482d3e04d2",
16
"transactionIndex": "0x0",
17
"value": "0x4563918244f40000",
18
"type": "0x2",
19
"accessList": [],
20
"chainId": "0x15f900",
21
"v": "0x1",
22
"r": "0xd81f5b9eb89ba971e12aba4b6e07511be282254f3329ec1abd5c8dacd212a753",
23
"s": "0x4f06866990970d79c56fb408eb506b186b51b66dfd507dd616f4404b423a1687",
24
"yParity": "0x0"
25
}
26
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free