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

# getTokenSupply

> Returns the supply (raw + UI amount + decimals) for a mint address.




## OpenAPI

````yaml openapi-spec/solana-rpc/getTokenSupply.yaml post /
openapi: 3.0.3
info:
  title: Raze Solana RPC — getTokenSupply
  description: >
    Get total supply of an SPL-token mint.


    Returns the supply (raw + UI amount + decimals) for a mint address.


    Sent as JSON-RPC 2.0 over HTTPS to any regional gateway (`POST /`). The
    gateway

    proxies to a load-balanced pool of upstream validators with method-aware
    hedging.
  version: 1.0.0
servers:
  - url: https://rpc.raze.bot
    description: Raze global RPC edge — GeoDNS routes to the nearest region automatically
security: []
paths:
  /:
    post:
      summary: getTokenSupply
      description: |
        Returns the supply (raw + UI amount + decimals) for a mint address.
      operationId: getTokenSupply
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
            examples:
              default:
                summary: Get total supply of an SPL-token mint.
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getTokenSupply
                  params:
                    - So11111111111111111111111111111111111111112
      responses:
        '200':
          description: |
            JSON-RPC response. Inspect `result` (success) or `error` (failure).
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/SuccessResponse'
                  - $ref: '#/components/schemas/ErrorResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    jsonrpc: '2.0'
                    id: 1
                    result:
                      context:
                        slot: 418263087
                      value:
                        amount: '0'
                        decimals: 9
                        uiAmount: 0
                        uiAmountString: '0'
                methodNotFound:
                  summary: No upstream supports this method
                  value:
                    jsonrpc: '2.0'
                    id: 1
                    error:
                      code: -32601
                      message: Method not found
components:
  schemas:
    Request:
      type: object
      required:
        - jsonrpc
        - method
        - params
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
          example: '2.0'
        id:
          oneOf:
            - type: integer
            - type: string
          example: 1
        method:
          type: string
          enum:
            - getTokenSupply
          example: getTokenSupply
        params:
          type: array
          description: |
            `[mint, commitment?]`
          items: {}
          example:
            - So11111111111111111111111111111111111111112
    SuccessResponse:
      type: object
      required:
        - jsonrpc
        - result
      properties:
        jsonrpc:
          type: string
          example: '2.0'
        result: {}
        id:
          oneOf:
            - type: integer
            - type: string
          example: 1
    ErrorResponse:
      type: object
      required:
        - jsonrpc
        - error
      properties:
        jsonrpc:
          type: string
          example: '2.0'
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: integer
              description: |
                JSON-RPC error code. Common values:
                - `-32601` — Method not found (no upstream supports it)
                - `-32602` — Invalid params
                - `-32603` — Upstream error / all endpoints failed
                - `-32005` — Rate limited
            message:
              type: string
        id:
          oneOf:
            - type: integer
            - type: string
          example: 1

````