L0vdL0vd

eth_getUncleCountByBlockHash

Returns the number of uncles in a block, by hash.

Archive · Works on any past block

curl https://eth.l0vdinfra.com/YOUR_KEY \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_getUncleCountByBlockHash","params":["0x9367448067f6cd79676ccf0ab3c4b84bda22967ff2c36497aef8fd67211ee3c0"]}'

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1"
}
Params and your endpoint

Parameters

blockHashstringrequired
32-byte block hash.

Returns

string Uncle count, hex.

When to use it

Count uncles in a block identified by hash.

How to read the result

Hex integer, or null if the block is unknown.

Tips

  • Same data as the by-number variant, safe across reorgs.

Related methods