Alchemy Logo

eth_getUncleCountByBlockNumber

POST
/{apiKey}

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

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

string 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?