Skip to main content

eth_getTransactionByBlockHashAndIndex

Ethereum API

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

Params

(2)

1. Block hash (required)

string
Match pattern:
^0x[0-9a-f]{64}$

2. Transaction index (required)

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

Result

(Transaction information)
(one of)
null

Params

Block hash

Transaction index


Request

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