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

# krnx_getTotalSupply

> Total KRNX supply at a block



## OpenAPI

````yaml specs/krnx_getTotalSupply.json POST /
openapi: 3.1.0
info:
  description: >-
    Generated from internal/krnxapi/krnx_reward_rpc.go by tools/rpcdocgen. Do
    not edit by hand.
  title: KRNX JSON-RPC
  version: 1.0.0
servers:
  - url: https://rpc.kronex.network
security: []
paths:
  /:
    post:
      summary: krnx_getTotalSupply
      description: >-
        Returns total supply at the selected state-backed block, computed as
        `genesis + totalMinted - totalBurned`.
      operationId: krnx_getTotalSupply
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
          description: JSON-RPC response
components:
  schemas:
    Request:
      properties:
        id:
          example: 1
          type: integer
        jsonrpc:
          enum:
            - '2.0'
          example: '2.0'
          type: string
        method:
          enum:
            - krnx_getTotalSupply
          example: krnx_getTotalSupply
          type: string
        params:
          description: 'Positional parameters: 1. `blockNrOrHash` (string, required).'
          example:
            - latest
          maxItems: 1
          minItems: 1
          type: array
      required:
        - jsonrpc
        - method
        - params
        - id
      type: object
    Response:
      properties:
        error:
          description: Present instead of `result` when the call fails.
          properties:
            code:
              example: -32602
              type: integer
            message:
              type: string
          type: object
        id:
          example: 1
          type: integer
        jsonrpc:
          example: '2.0'
          type: string
        result:
          $ref: '#/components/schemas/krnxSupplyResult'
      type: object
    krnxSupplyResult:
      properties:
        amount:
          $ref: '#/components/schemas/krnxAmountResult'
        blockNumber:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
      required:
        - blockNumber
      type: object
    krnxAmountResult:
      properties:
        decimal:
          type: string
        raw:
          type: string
      required:
        - decimal
        - raw
      type: object

````