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

# getTokenSupply

> SPLトークンタイプの合計供給量を返します。

## リクエストパラメータ

<ParamField body="address" type="string" required>
  サプライメトリクスを取得するためのSolanaトークンミントアドレス（SPLトークンのユニークな識別子）。
</ParamField>

<ParamField body="commitment" type="string">
  リクエストのコミットメントレベル。

  * `confirmed`
  * `finalized`
  * `processed`
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getTokenSupply.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: Solanaブロックチェーン上の任意のSPLトークンまたは代替可能資産の現在の流通量と総供給メトリクスを取得するためのトークノミクス分析API。
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: メインネットRPCエンドポイント
  - url: https://devnet.helius-rpc.com
    description: Devnet RPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getTokenSupply
      description: >
        Solanaブロックチェーン上の任意のSPLトークンの包括的なトークン供給メトリクスを取得します。

        この重要なトークノミクスAPIは、トークンの流通供給、総ミント量、および小数点設定に関する正確でリアルタイムのデータを提供します。トークン分析ダッシュボード、DeFiアプリケーション、時価総額計算、プロトコルメトリクス、および

        信頼性のあるトークン供給情報が必要な取引プラットフォームにとって不可欠です。すべてのSPLトークンタイプをサポートし、小数点のフォーマットにより正確な表示が可能です。
      operationId: getTokenSupply
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: JSON-RPCプロトコルバージョン。
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: リクエストの一意識別子。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getTokenSupply
                  description: 呼び出すRPCメソッドの名前。
                  example: getTokenSupply
                  default: getTokenSupply
                params:
                  type: array
                  description: トークン供給を照会するためのパラメータ。
                  default:
                    - 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU
                  items:
                    oneOf:
                      - type: string
                        description: 供給メトリクスを取得するためのSolanaトークンミントアドレス（SPLトークンの一意識別子）。
                        example: 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU
                      - type: object
                        description: 構成オブジェクト。
                        properties:
                          commitment:
                            type: string
                            description: リクエストのコミットメントレベル。
                            enum:
                              - confirmed
                              - finalized
                              - processed
                            example: finalized
      responses:
        '200':
          description: トークン供給を正常に取得しました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPCプロトコルバージョン。
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: リクエストに一致する識別子。
                    example: '1'
                  result:
                    type: object
                    description: コンテキストおよびトークン供給の詳細。
                    properties:
                      context:
                        type: object
                        description: レスポンスのコンテキスト。
                        properties:
                          slot:
                            type: integer
                            description: データが取得されたスロット。
                            example: 1114
                      value:
                        type: object
                        description: トークン供給の詳細。
                        properties:
                          amount:
                            type: string
                            description: 小数点格式のない正確な整数の文字列としての生のSolanaトークンの総供給量。
                            example: '100000'
                          decimals:
                            type: integer
                            description: トークンによって定義された有効小数桁数。正確な供給表現のため。
                            example: 2
                          uiAmount:
                            type: number
                            description: 適切な小数点フォーマットを用いた人間可読なトークン供給（非推奨）。
                            example: 1000
                          uiAmountString:
                            type: string
                            description: 正しい小数点位置を持つトークンの総供給量の正準文字列表現。
                            example: '1000'
              examples:
                responseExample:
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result:
                      context:
                        slot: 1114
                      value:
                        amount: '100000'
                        decimals: 2
                        uiAmount: 1000
                        uiAmountString: '1000'
        '400':
          description: 不正なリクエスト - リクエストパラメータが無効または不正です。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: パラメータが無効
                id: '1'
        '401':
          description: 未認証 - 無効または欠落したAPIキー。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: 未認証
                id: '1'
        '429':
          description: リクエストが多すぎます - レート制限を超えました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: リクエストが多すぎます
                id: '1'
        '500':
          description: 内部サーバーエラー - サーバーでエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: 内部エラー
                id: '1'
        '503':
          description: サービス利用不可 - サービスが一時的に利用できません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: サービス利用不可
                id: '1'
        '504':
          description: ゲートウェイタイムアウト - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: ゲートウェイタイムアウト
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: JSON-RPCプロトコルバージョン。
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: エラーコード。
              example: -32602
            message:
              type: string
              description: エラーメッセージ。
            data:
              type: object
              description: エラーに関する追加データ。
        id:
          type: string
          description: リクエストに一致する識別子。
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Helius
        APIキー。無料で[ダッシュボード](https://dashboard.helius.dev/api-keys)から取得可能です。

````