eth_getUncleCountByBlockNumber

The eth_getUncleCountByBlockNumber method returns the number of uncles in a block from a block matching the given block number on the Optimism network. Similar to eth_getUncleCountByBlockHash but uses block number for identification, making it convenient for sequential block processing and blockchain analysis.


Parameters

parameter
type
description
blockParameter
string (required)
Block number in hex or tag (latest, earliest, pending)
Return Object

Returns the number of uncles in the block as a hexadecimal value.

Request Example
Request
Response Example
Response

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