Skip to main content

eth_getTransactionByBlockNumberAndIndex RPC Method

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

Updated on
Mar 27, 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

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

(Optional) The hash of the block where this transaction was included; the value is null when the transaction is pending

blockNumber
string

(Optional) The block number where this transaction was included encoded as hexadecimal; the value is null when the transaction is pending

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

(Optional) The address of the receiver; the value is null for contract creation transactions

transactionIndex
string

(Optional) The index position of the transaction within the block encoded as hexadecimal; the value is null when the transaction is pending

value
string

The value transferred in wei encoded as hexadecimal

type
string

The transaction type encoded as hexadecimal

v
string

The standardized V field of the signature encoded as hexadecimal

r
string

The R field of the signature encoded as hexadecimal

s
string

The S field of the signature encoded as hexadecimal

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x7fb636698d5ad9b549795b4b543b055be2f26c80f15a4894abb898d256f03ab7",
6
"blockNumber": "0x11656f6",
7
"from": "0x8ef5751dc714dce720edb7e45464f64049ba18a1",
8
"gas": "0x30ac4",
9
"gasPrice": "0xf42400",
10
"hash": "0x8579b7dec12e69dc9355c42e3989b295eadf84cd26ea04df369a881359672654",
11
"input": "0x9265bb9d00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000642c3984fb086000000000000000000000000000000000000000000000000000000006909ec5100000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000c7d67a9cbb121b3b0b9c053dd9f469523243379a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000e36e63b0c4fb8a1eaa43c80f7b7129fea378099800000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041d8071a4c6ea6d0e3edf5251fa6e70468e7b8bb8f49cdfdcedf6f3b80c302e4ff3d6029b46f5dfd9309bd298eddf2ada855d0be3e3d6dd78fec9c3a512a5cb6de1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041dc98ac44cf5208c31aea0b1ce256fec3f9da9df5a38514425893d4cbea2f91675aecc78a329a2c948182dc0ff5da1f842438583f5297e251429fc76817f6f4e71c00000000000000000000000000000000000000000000000000000000000000",
12
"nonce": "0xd9d",
13
"to": "0xeeae6c472be3ced42094b0f5a4f49380d0cfbccc",
14
"transactionIndex": "0x0",
15
"value": "0x0",
16
"type": "0x0",
17
"v": "0x1628",
18
"r": "0x96072887c82fe284ca57ba6265fdfb6d735121675f555fa55f1aa3ca6eab4b64",
19
"s": "0x4d65ce5ee4fd110bf03e9175ada1ab3621ce9500f211c255def53a4b1c14a655"
20
}
21
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x7fb636698d5ad9b549795b4b543b055be2f26c80f15a4894abb898d256f03ab7",
6
"blockNumber": "0x11656f6",
7
"from": "0x8ef5751dc714dce720edb7e45464f64049ba18a1",
8
"gas": "0x30ac4",
9
"gasPrice": "0xf42400",
10
"hash": "0x8579b7dec12e69dc9355c42e3989b295eadf84cd26ea04df369a881359672654",
11
"input": "0x9265bb9d00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000642c3984fb086000000000000000000000000000000000000000000000000000000006909ec5100000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000c7d67a9cbb121b3b0b9c053dd9f469523243379a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000e36e63b0c4fb8a1eaa43c80f7b7129fea378099800000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041d8071a4c6ea6d0e3edf5251fa6e70468e7b8bb8f49cdfdcedf6f3b80c302e4ff3d6029b46f5dfd9309bd298eddf2ada855d0be3e3d6dd78fec9c3a512a5cb6de1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041dc98ac44cf5208c31aea0b1ce256fec3f9da9df5a38514425893d4cbea2f91675aecc78a329a2c948182dc0ff5da1f842438583f5297e251429fc76817f6f4e71c00000000000000000000000000000000000000000000000000000000000000",
12
"nonce": "0xd9d",
13
"to": "0xeeae6c472be3ced42094b0f5a4f49380d0cfbccc",
14
"transactionIndex": "0x0",
15
"value": "0x0",
16
"type": "0x0",
17
"v": "0x1628",
18
"r": "0x96072887c82fe284ca57ba6265fdfb6d735121675f555fa55f1aa3ca6eab4b64",
19
"s": "0x4d65ce5ee4fd110bf03e9175ada1ab3621ce9500f211c255def53a4b1c14a655"
20
}
21
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free