> ## 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 ko/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 키입니다. [대시보드](https://dashboard.helius.dev/api-keys)에서 무료로
        발급받을 수 있습니다.

````