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

# Get Signature Nonce

> Returns the current signature nonce for a given World ID based on its leaf index. The nonce is
used to perform on-chain operations for the World ID.



## OpenAPI

````yaml https://indexer.us.id-infra.worldcoin.dev/openapi.json post /signature-nonce
openapi: 3.1.0
info:
  title: world-id-indexer
  description: ''
  license:
    name: MIT
    identifier: MIT
  version: 0.1.5
servers: []
security: []
tags:
  - name: indexer
    description: >-
      World ID Indexer. Provides Merkle inclusion proofs and account information
      from the on-chain registry.
paths:
  /signature-nonce:
    post:
      tags:
        - indexer
      summary: Get Signature Nonce
      description: >-
        Returns the current signature nonce for a given World ID based on its
        leaf index. The nonce is

        used to perform on-chain operations for the World ID.
      operationId: handler
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IndexerQueryRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexerSignatureNonceResponse'
components:
  schemas:
    IndexerQueryRequest:
      type: object
      description: |-
        Query for the indexer based on a leaf index.

        Used for getting inclusion proofs and signature nonces.
      required:
        - leaf_index
      properties:
        leaf_index:
          type: string
          format: hex
          description: |-
            The leaf index to query (from the `WorldIDRegistry`).

            Accepts decimal or `0x`/`0X`-prefixed hex input.
          example: '0x1'
    IndexerSignatureNonceResponse:
      type: object
      description: Response containing the signature nonce from the indexer.
      required:
        - signature_nonce
      properties:
        signature_nonce:
          type: string
          format: hex
          description: |-
            The signature nonce for the account.

            Serialized as a canonical `0x`-prefixed hex string.
          example: '0x0'

````