> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getUncleCountByBlockHash

> Get the number of uncles in a block by block hash

Defined in the [Ethereum JSON-RPC Specification](https://ethereum.org/en/developers/docs/apis/json-rpc/)

> [!NOTE]
>
> Returns the number of uncles in a block by block hash.

## Parameters

**blockHash** `string` *required*

Hash of a block (32 bytes).

## Returns

**result** `string`

The number of uncles in this block as a hexadecimal string.

```json Request lines wrap expandable theme={null}
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getUncleCountByBlockHash",
  "params": [
    "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b"
  ]
}
```

```json Success Response theme={null}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x1"
}
```

```json No Uncles theme={null}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x0"
}
```

## Error Handling

| Code | Message | Description |
| - | - | - |
| -32602 | Invalid block hash | The provided block hash is invalid |
| 4100 | Requested method not supported | The method is not supported by the wallet |

> [!NOTE]
>
> Uncle blocks are blocks that were mined but not included in the main blockchain. This method returns their count for a specific block.
