Alchemy Logo

eth_getUncleByBlockNumberAndIndex

POST
/{apiKey}

Returns information about an uncle of a block by number and uncle index.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Block number or tagstring or enumrequired

The block number or special tags like 'latest', 'earliest', or 'pending'.

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

The index position of the uncle in the block's uncles array.

Responses

200

The uncle block object, or null if not found.

Was this page helpful?