> ## 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.

# getTokenAccounts

> ウォレットアドレスが所有するすべてのSPLトークンアカウントを、トークン残高、ミントアドレス、アカウントメタデータと共にページネーションで取得します

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

<ParamField body="mint" type="string">
  ミントアドレスキー。
</ParamField>

<ParamField body="owner" type="string">
  オーナーアドレスキー。
</ParamField>

<ParamField body="page" type="number">
  返す結果のページ。
</ParamField>

<ParamField body="limit" type="number">
  返す最大アセット数。
</ParamField>

<ParamField body="cursor" type="string">
  ページネーションに使用するカーソル。
</ParamField>

<ParamField body="before" type="string">
  指定したカーソルの前にある結果を返します。
</ParamField>

<ParamField body="after" type="string">
  指定したカーソルの後にある結果を返します。
</ParamField>

<ParamField body="options" type="object" />

<ParamField body="options.showZeroBalance" type="boolean">
  trueの場合、トークン残高が空のアカウントを表示します。
</ParamField>


## OpenAPI

````yaml ja/openapi/das-api/getTokenAccounts.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  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: getTokenAccounts
      description: 指定されたミントとオーナーのトークンアカウントのリストを返します。
      operationId: rpc
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: JSON-RPCプロトコルのバージョン。
                  default: '2.0'
                id:
                  type: string
                  description: リクエストを識別するためのID。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getTokenAccounts
                  description: 呼び出すメソッドの名前。
                  default: getTokenAccounts
                params:
                  type: object
                  default:
                    owner: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
                  properties:
                    mint:
                      type: string
                      description: ミントアドレスキー。
                      example: string
                    owner:
                      type: string
                      description: オーナーアドレスキー。
                      example: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
                    page:
                      type: integer
                      description: 返す結果のページ。
                      example: 1
                    limit:
                      type: integer
                      description: 返す資産の最大数。
                      example: 100
                    cursor:
                      type: string
                      description: ページネーションに使用されるカーソル。
                    before:
                      type: string
                      description: 指定されたカーソルの前の結果を返します。
                    after:
                      type: string
                      description: 指定されたカーソルの後の結果を返します。
                    options:
                      type: object
                      properties:
                        showZeroBalance:
                          type: boolean
                          description: trueの場合、空のトークン残高を持つアカウントを表示します。
      responses:
        '200':
          description: 成功した応答
          content:
            application/json:
              schema:
                type: object
                properties:
                  last_indexed_slot:
                    type: integer
                    description: このスロットまでのすべてのデータがインデックス化されていることを保証します。
                    example: 365750752
                  total:
                    type: integer
                    description: リクエストで見つかった結果の数。
                    example: 2
                  limit:
                    type: integer
                    description: 要求された結果の最大数。
                    example: 100
                  cursor:
                    type: string
                    description: ページネーションに使用されるカーソル。
                  token_accounts:
                    type: array
                    description: トークンアカウントの配列。
                    items:
                      type: object
                      properties:
                        address:
                          type: string
                          description: トークンアカウントのアドレス。
                        mint:
                          type: string
                          description: ミントアカウントのアドレス。
                        owner:
                          type: string
                          description: トークンアカウントオーナーのアドレス。
                        amount:
                          type: integer
                          description: アカウント内のトークン数。
                        delegated_amount:
                          type: integer
                          description: アカウント内の委任されたトークン数。
                        frozen:
                          type: boolean
                          description: アカウントが凍結されているかどうか。
                        burnt: false
        '400':
          description: 不正なリクエスト。サーバーは無効な構文のためにリクエストを理解できませんでした。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32602
                      message:
                        type: string
                        example: リクエストパラメータが無効です。
                  id:
                    type: string
                    example: '1'
        '401':
          description: 認証されていない。クライアントは要求された応答を取得するために認証する必要があります。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32001
                      message:
                        type: string
                        example: 認証に失敗しました。欠落または無効なAPIキー。
                  id:
                    type: string
                    example: '1'
        '403':
          description: 禁止されている。クライアントはこのコンテンツへのアクセス権がありません。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32003
                      message:
                        type: string
                        example: このリソースにアクセスする権限がありません。
                  id:
                    type: string
                    example: '1'
        '404':
          description: 見つかりません。サーバーは要求されたリソースを見つけることができません。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32004
                      message:
                        type: string
                        example: 要求されたリソースは見つかりませんでした。
                  id:
                    type: string
                    example: '1'
        '429':
          description: リクエストが多すぎます。指定された時間内にユーザーが多すぎるリクエストを送信しました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32029
                      message:
                        type: string
                        example: レート制限を超えました。後でもう一度やり直してください。
                  id:
                    type: string
                    example: '1'
        '500':
          description: 内部サーバーエラー。サーバーが処理できない状況に陥りました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32000
                      message:
                        type: string
                        example: サーバーで予期しないエラーが発生しました。
                  id:
                    type: string
                    example: '1'
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: Helius APIキー。無料でダッシュボードから取得できます。

````