Alchemy Logo

eth_getTransactionByBlockNumberAndIndex

POST
/{apiKey}

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

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Blockstring or enumrequired

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

Transaction indexstringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"required

The index position of the transaction in the block's transaction list, as a hexadecimal string.

Responses

200

The transaction object containing various properties of the transaction.

Was this page helpful?