eth_getTransactionByBlockNumberAndIndex

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

Path parameters

apiKeystringRequired

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.

Eth Get Transaction by Block Number and Index Result0object
OR
Eth Get Transaction by Block Number and Index Result1object
OR
Eth Get Transaction by Block Number and Index Result2object
OR
Eth Get Transaction by Block Number and Index Result3object