Skip to main content

eth_getTransactionByBlockNumberAndIndex RPC Method

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

Updated on
Jan 16, 2026

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. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain

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

type
string

The transaction type

nonce
string

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

gasPrice
string

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

gas
string

The gas provided by the sender encoded as hexadecimal

to
string

The address of the receiver, null when the transaction created a contract

value
string

The value transferred in wei encoded as hexadecimal

input
string

The data sent along with the transaction

r
string

The R field of the transaction signature

s
string

The S field of the transaction signature

v
string

The standardized V field of the transaction signature

hash
string

The hash of the transaction

blockHash
string

The hash of the block where this transaction was included, null when pending

blockNumber
string

The block number where this transaction was included, null when pending

transactionIndex
string

The index position of the transaction in the block, null when pending

from
string

The address of the sender

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x0",
6
"nonce": "0x43",
7
"gasPrice": "0x4a817c800",
8
"gas": "0x186a0",
9
"to": "0x5d95a6bad575ff00e12919dfa259e6a3dd50388f",
10
"value": "0x0",
11
"input": "0xda91254c",
12
"r": "0x93edc404d7cb9022adc020ae9f06c489ff7c9f146f6e820e610db404b5ce7335",
13
"s": "0x708984bb15226c850c21d766461cd3dbd35269575de842fd0097759c347182f0",
14
"v": "0x1b",
15
"hash": "0x3901f2145d10aaffd4ae1ec1e74d7f0041416a07dc542d0ae9e3edce0542b51c",
16
"blockHash": "0xbe7e72a6208063a9b0fc88090027418939a42e8fba86dd967949291b5e0680a5",
17
"blockNumber": "0x6aede5",
18
"transactionIndex": "0x0",
19
"from": "0x1cc0c65ca5dd6b767338946f2c44c02040744ef5"
20
}
21
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x0",
6
"nonce": "0x43",
7
"gasPrice": "0x4a817c800",
8
"gas": "0x186a0",
9
"to": "0x5d95a6bad575ff00e12919dfa259e6a3dd50388f",
10
"value": "0x0",
11
"input": "0xda91254c",
12
"r": "0x93edc404d7cb9022adc020ae9f06c489ff7c9f146f6e820e610db404b5ce7335",
13
"s": "0x708984bb15226c850c21d766461cd3dbd35269575de842fd0097759c347182f0",
14
"v": "0x1b",
15
"hash": "0x3901f2145d10aaffd4ae1ec1e74d7f0041416a07dc542d0ae9e3edce0542b51c",
16
"blockHash": "0xbe7e72a6208063a9b0fc88090027418939a42e8fba86dd967949291b5e0680a5",
17
"blockNumber": "0x6aede5",
18
"transactionIndex": "0x0",
19
"from": "0x1cc0c65ca5dd6b767338946f2c44c02040744ef5"
20
}
21
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free