Skip to main content

eth_getUncleCountByBlockHash RPC Method

Returns the number of uncles for the block matching the given block hash.

Updated on
Oct 15, 2026

Parameters

hash
string
REQUIRED

The hash of the block to get uncles for

Returns

uncles
string

The integer value of the number of uncles in the block encoded as hexadecimal

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x0"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x0"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free