Skip to main content
Defined in the Ethereum JSON-RPC Specification
Returns the number of uncles in a block by block hash.

Parameters

string
required
Hash of a block (32 bytes).

Returns

string
The number of uncles in this block as a hexadecimal string.

Error Handling

Uncle blocks are blocks that were mined but not included in the main blockchain. This method returns their count for a specific block.