eth_getTransactionByBlockNumberAndIndex

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

Path parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
Blockstring or enumRequired

The block number or tag (‘latest’, ‘earliest’, ‘pending’) containing the transaction.

Transaction indexstringRequiredformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
The index position of the transaction in the block's transaction list, as a hexadecimal string.

Response

The transaction object containing various properties of the transaction.
Signed 4844 Transactionobject
OR
Signed 1559 Transactionobject
OR
Signed 2930 Transactionobject
OR
Signed Legacy Transactionobject