eth_getUncleCountByBlockHash

The eth_getUncleCountByBlockHash method returns the number of uncles in a block from a block matching the given block hash on the Optimism network. This lightweight method allows you to quickly check how many uncle blocks are referenced in a specific block without fetching the complete block data, useful for blockchain statistics and mining analysis.


Parameters

parameter
type
description
blockHash
string (required)
Hash of the block (32 bytes)
Return Object

Returns the uncle count as a hexadecimal number. The value represents how many uncle blocks are referenced by the specified block.

Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?