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

# uncleByHashAndIndex

> Returns the uncle block for a given block hash and index.



## OpenAPI

````yaml openapi-getUncleByBlockHashAndIndex POST /
openapi: 3.0.0
info:
  title: Quai JSON RPC API
  version: 1.0.0
servers:
  - url: https://rpc.quai.network/cyprus1
security: []
paths:
  /:
    post:
      summary: quai_getUncleByBlockHashAndIndex
      description: Returns uncle data for a given block hash and index.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
components:
  schemas:
    Request:
      type: object
      required:
        - jsonrpc
        - method
        - params
        - id
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          enum:
            - '2.0'
        method:
          type: string
          description: The name of the method to be invoked.
          example: quai_getUncleByBlockHashAndIndex
          enum:
            - quai_getUncleByBlockHashAndIndex
        params:
          type: array
          description: The block hash and uncle index.
          items:
            type: string
          maxItems: 2
          minItems: 2
          example:
            - '0x000000ceb1b398df1e8026b2a426b411f6cc9041f2f4356211a3c723a2f797d2'
            - '0x1'
        id:
          type: integer
          description: A unique identifier for the request.
          example: 1
    Response:
      type: object
      properties:
        jsonrpc:
          type: string
          example: '2.0'
        result:
          type: object
          properties:
            difficulty:
              type: string
              description: The difficulty achieved by the uncle.
            headerHash:
              type: string
              description: The hash of the header data for the uncle.
            location:
              type: string
              description: The 4 byte zone location identifier of the uncle.
            lock:
              type: string
              description: The duration that the rewards for this uncle block are locked.
            mixHash:
              type: string
              description: The ProgPOW mix hash of the uncle.
            nonce:
              type: string
              description: The random number used in the valid proof-of-work.
            number:
              type: string
              description: The number of the uncle.
            parentHash:
              type: string
              description: The hash of the parent block this uncle was mined on top of.
            primaryCoinbase:
              type: string
              description: >-
                The primary coinbase of the miner of this uncle. Determines
                whether uncle rewards are paid out in Quai or Qi.
            primeTerminusNumber:
              type: string
              description: >-
                The number of the most recent prime block the shard this uncle
                was included in.
            timestamp:
              type: string
              description: The timestamp for when the uncle block was collated.
            txHash:
              type: string
              description: >-
                The hash of one or more transactions worked and included in the
                uncle.
          example:
            difficulty: '0x4830bb629'
            headerHash: '0x668637e998e3d18e5f529c3dbfe084f57a4ca853812aa136e57153d5d81287ac'
            location: '0x0000'
            lock: '0x1'
            mixHash: '0x81c2449a5024c5ba098610f4de40390f87a36df9d92fd5568ef69291aa7b02dc'
            nonce: '0x36d54000031850e1'
            number: '0x2ed'
            parentHash: '0xfeee321190b340d980aa0c6a6216a396c9d0b387c69dd5e1385c3293b61b3386'
            primaryCoinbase: '0x0003e45Aa16163f2663015B6695894D918866D19'
            primeTerminusNumber: '0xa5'
            timestamp: '0x66fd8a4d'
            txHash: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'
          description: The uncle data for the corresponding block number and index.
        id:
          type: integer
          example: 1

````