Appearance
eth_getUncleCountByBlockHash
served · same as reth
Returns the number of uncles (ommers) of a block, by block hash. It is 0x0 for blocks after the merge.
When to use
Old tools call it. On a node that starts after the merge, it has no use.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getUncleCountByBlockHash", "params": ["0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5"]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getUncleCountByBlockHash",
"params": [
"0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5"
]
}Response
Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
blockHash | 32-byte hash | yes | The hash of the block. |
Returns
0x0, or null when the hash is unknown.
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
eth_getUncleByBlockHashAndIndex.
Schema (OpenRPC)
Parameter blockHash: Hash32
json
{
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}Result: Quantity or null
json
{
"oneOf": [
{
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
{
"type": "null"
}
]
}