eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
Params
(2)1. block_tag (required)
Quantity
(any of)
integer
>= 0
2. index (required)
integer
>= 0
Result
(MonadTransaction)type
stringchainId
stringnonce
stringgas
stringmaxFeePerGas
stringmaxPriorityFeePerGas
stringto
string or null
value
stringaccessList
arrayinput
stringr
strings
stringyParity
string or null
v
string or null
hash
stringblockHash
string or null
blockNumber
string or null
transactionIndex
string or null
from
stringgasPrice
string or null
Example
Request
await window.ethereum.request({
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": []
});
Result
{
"accessList": [],
"blockHash": "0x883f974b17ca7b28cb970798d1c80f4d4bb427473dc6d39b2a7fe24edc02902d",
"blockNumber": "0xe26e6d",
"chainId": "0x1",
"from": "0x3cf412d970474804623bb4e3a42de13f9bca5436",
"gas": "0x46a02",
"gasPrice": "0x50101df3a",
"hash": "0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c",
"input": "0x5ae401dc00000000000000000000000000000000000000000000000000000000628ced5b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e442712a6700000000000000000000000000000000000000000000b3ff1489674e11c40000000000000000000000000000000000000000000000000000004a6ed55bbcc18000000000000000000000000000000000000000000000000000000000000000800000000000000000000000003cf412d970474804623bb4e3a42de13f9bca54360000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000003a75941763f31c930b19c041b709742b0b31ebb600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
"maxFeePerGas": "0x7fc1a20a8",
"maxPriorityFeePerGas": "0x59682f00",
"nonce": "0x16d",
"r": "0x7f2153019a74025d83a73effdd91503ceecefac7e35dd933adc1901c875539aa",
"s": "0x334ab2f714796d13c825fddf12aad01438db3a8152b2fe3ef7827707c25ecab3",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"transactionIndex": "0xad",
"type": "0x2",
"v": "0x0",
"value": "0x4a6ed55bbcc180",
"yParity": "0x0"
}