Alchemy Logo

eth_getUncleCountByBlockHash

POST
/{apiKey}

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

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.

Responses

200

The number of uncle blocks as a hexadecimal string.

Was this page helpful?