Skip to main content

eth_getTransactionByBlockNumberAndIndex

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

Params

(2)

1. block_tag (required)

(any of)
string<hex>

2. index (required)

string<hex>

Result

(MonadGetTransactionResult)
blockHash
any
blockNumber
any
chainId
any
from
string
gas
string
hash
string
input
string
nonce
string
to
any
transactionIndex
any
value
string

Example

Request

await window.ethereum.request({
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": []
});

Result

{
"blockHash": null,
"blockNumber": null,
"chainId": null,
"from": "0x0000000000000000000000000000000000000000",
"gas": "0x0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"input": "0x",
"nonce": "0x0",
"to": null,
"transactionIndex": null,
"value": "0x0"
}

Params

block_tag

index


Request

await window.ethereum.request({
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": [
null,
null
]
});