eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
Params
(2)1. block_tag (required)
Quantity
(any of)
string<hex>
2. index (required)
string<hex>
Result
(MonadTransaction)blockHash
anyblockNumber
anychainId
anyfrom
stringgas
stringhash
stringinput
stringnonce
stringto
anytransactionIndex
anyvalue
stringExample
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"
}