Skip to main content

eth_getTransactionByBlockNumberAndIndex

Ethereum API

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

Params

(2)

1. Block (required)

(one of)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

2. Transaction index (required)

string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Result

(Transaction information)
(one of)
null

Params

Block

Transaction index


Request

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