Alchemy Logo

eth_getTransactionByBlockHashAndIndex

POST
/{apiKey}

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

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Block hashstringformat: "^0x[0-9a-f]{64}$"required

The hash of the block 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?