Skip to main content

eth_getTransactionByBlockNumberAndIndex RPC Method

Returns information about a transaction given a block number and transaction index position.

Updated on
Apr 29, 2026

To use the eth_getTransactionByBlockNumberAndIndex method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

Parameters

blockNumber
string
REQUIRED

The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators

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 | null

The hash of the block where this log was in. null when it's a pending log

blockNumber
string | null

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

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 prior to this one encoded as hexadecimal

to
string | null

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

transactionIndex
string | null

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

value
string

The value transferred in wei encoded as hexadecimal

type
string

The transaction type

chainId
string

The chain id of the transaction, if any

v
string

The standardized V field of the signature

r
string

The R field of the signature

s
string

The S field of the signature

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x863eb4e1084f11c3662c76786cef2bfd120b7d3f27302ebda967eec4b14ccff8",
6
"blockNumber": "0x3a09c",
7
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
8
"gas": "0xf4240",
9
"gasPrice": "0x0",
10
"hash": "0x71ec1b60298dbb295aaf2c18561f41686e88fd1edfe9bf9a0059170d327d25e7",
11
"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",
12
"nonce": "0x3a09b",
13
"to": "0x4200000000000000000000000000000000000015",
14
"transactionIndex": "0x0",
15
"value": "0x0",
16
"type": "0x2",
17
"v": "0x0",
18
"r": "0x0",
19
"s": "0x0"
20
}
21
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x863eb4e1084f11c3662c76786cef2bfd120b7d3f27302ebda967eec4b14ccff8",
6
"blockNumber": "0x3a09c",
7
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
8
"gas": "0xf4240",
9
"gasPrice": "0x0",
10
"hash": "0x71ec1b60298dbb295aaf2c18561f41686e88fd1edfe9bf9a0059170d327d25e7",
11
"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",
12
"nonce": "0x3a09b",
13
"to": "0x4200000000000000000000000000000000000015",
14
"transactionIndex": "0x0",
15
"value": "0x0",
16
"type": "0x2",
17
"v": "0x0",
18
"r": "0x0",
19
"s": "0x0"
20
}
21
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free