API Reference

eth_getUncleCountByBlockHash

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

Request Parameters

  • BLOCK HASH [required] - a string representing the hash (32 bytes) of a block.

Response

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

Result Fields

  • BLOCK TRANSACTION COUNT - a hex code of the integer representing the number of uncles in the provided block.

Examples

Example Responses
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x1"
}
Language
Click Try It! to start a request and see the response here!