eth_getUncleCountByBlockHash
Defined in the Ethereum JSON-RPC Specification
Returns the number of uncles in a block from a block matching the given block hash.
Parameters
type GetUncleCountByBlockHashParams = [string]
An array containing a single string: the hash of the block.
Returns
string
The number of uncles in the specified block, encoded as a hexadecimal.
Example
"0x1" // 1 uncle
Errors
Code | Message |
---|---|
4200 | Unsupported method |