Alchemy Logo

eth_getUncleCountByBlockNumber

POST
/{apiKey}

Returns the number of uncles in a block matching the given block number.

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'.

Responses

200

The number of uncle blocks as a hexadecimal string.

Was this page helpful?