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

# eth_getUncleCountByBlockHash | Robinhood

> Robinhood Chain API method that returns the number of uncles in a block by block hash. data — the hash of the block quantity — the number of uncles in the block.

Robinhood Chain API method that returns the number of uncles in a block by block hash.

## Parameters

* `data` — the hash of the block

## Response

* `quantity` — the number of uncles in the block

## `eth_getUncleCountByBlockHash` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { JsonRpcProvider } = require("ethers");

  const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function call() {
    const result = await provider.send("eth_getUncleCountByBlockHash", ["0xf4aab7a559489b816aca197b9a9315b5363a9932c52c3e8bfcf4152588ee096a"]);
    console.log(result);
  }

  call();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"
  web3 = Web3(Web3.HTTPProvider(node_url))

  result = web3.provider.make_request("eth_getUncleCountByBlockHash", ["0xf4aab7a559489b816aca197b9a9315b5363a9932c52c3e8bfcf4152588ee096a"])
  print(result)
  ```

  ```shell cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    --data '{
      "jsonrpc": "2.0",
      "method": "eth_getUncleCountByBlockHash",
      "params": ["0xf4aab7a559489b816aca197b9a9315b5363a9932c52c3e8bfcf4152588ee096a"],
      "id": 1
    }'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/robinhood_node_api/blocks_info/eth_getUncleCountByBlockHash.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: >-
      https://robinhood-mainnet.core.chainstack.com/23cf4479b299ab4835d76c05c468ca6e
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: eth_getUncleCountByBlockHash
      operationId: eth_getUncleCountByBlockHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getUncleCountByBlockHash
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                        title: Block hash
                        description: Hash of the block.
                  default:
                    - >-
                      0xf4aab7a559489b816aca197b9a9315b5363a9932c52c3e8bfcf4152588ee096a
      responses:
        '200':
          description: >-
            Returns the number of uncles in a block from a block matching the
            given block hash.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    nullable: true

````