Skip to content

eth_getUncleCountByBlockNumber

Defined in the Ethereum JSON-RPC Specification

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

Parameters

type GetUncleCountByBlockNumberParams = [string]

An array containing a single string: the block number (as a hexadecimal) or tag.

Valid tags: "earliest", "latest", "pending", "safe", "finalized"

Returns

string

The number of uncles in the specified block, encoded as a hexadecimal.

Example

"0x1" // 1 uncle

Errors

CodeMessage
4200Unsupported method