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

# getCompressedTokenBalancesByOwner

> getCompressedTokenBalancesByOwner gibt jeden komprimierten Token-Saldo für einen Solana-Besitzer (ZK-Komprimierung) zurück, filterbar nach Mint und paginiert nach Cursor und Limit.

## Anforderungsparameter

<ParamField body="cursor" type="string" default="3J98t1WpEZ73CNm">
  Eine Base58-codierte Zeichenkette.
</ParamField>

<ParamField body="limit" type="number" />

<ParamField body="mint" type="string" default="11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR">
  Ein Solana-Public-Key, dargestellt als Base58-Zeichenkette.
</ParamField>

<ParamField body="owner" type="string" required default="11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR">
  Ein Solana-Public-Key, dargestellt als Base58-Zeichenkette.
</ParamField>


## OpenAPI

````yaml de/openapi/zk-compression/getCompressedTokenBalancesByOwner.yaml POST /
openapi: 3.0.3
info:
  title: photon-indexer
  description: Solana-Indexer für allgemeine Kompression
  license:
    name: Apache-2.0
  version: 0.50.0
servers:
  - url: https://mainnet.helius-rpc.com
    description: Mainnet RPC-Endpunkt
  - url: https://devnet.helius-rpc.com
    description: Devnet RPC-Endpunkt
security: []
paths:
  /:
    summary: getCompressedTokenBalancesByOwner
    post:
      description: Ruft getCompressedTokenBalancesByOwner-Informationen ab
      operationId: getCompressedTokenBalancesByOwner
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  description: Die Version des JSON-RPC-Protokolls.
                  enum:
                    - '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Eine ID zur Identifizierung der Anfrage.
                  default: '1'
                method:
                  type: string
                  description: Der Name der aufzurufenden Methode.
                  enum:
                    - getCompressedTokenBalancesByOwner
                  default: getCompressedTokenBalancesByOwner
                params:
                  type: object
                  required:
                    - owner
                  properties:
                    cursor:
                      allOf:
                        - $ref: '#/components/schemas/Base58String'
                      nullable: true
                    limit:
                      allOf:
                        - $ref: '#/components/schemas/Limit'
                      nullable: true
                    mint:
                      allOf:
                        - $ref: '#/components/schemas/SerializablePubkey'
                      nullable: true
                    owner:
                      $ref: '#/components/schemas/SerializablePubkey'
                  additionalProperties: false
        required: true
      responses:
        '200':
          description: >-
            Erfolgreich komprimierte Token-Bilanzen nach Eigentümer von der
            Solana-Blockchain abgerufen
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/TokenBalanceList'
                additionalProperties: false
        '400':
          description: >-
            Fehlerhafte Anfrage - Ungültige Anforderungsparameter oder
            fehlerhafte Anfrage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Ungültige Parameter
                id: '1'
        '401':
          description: Nicht autorisiert - Ungültiger oder fehlender API-Schlüssel.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Nicht autorisiert
                id: '1'
        '429':
          description: Zu viele Anfragen - Ratenlimit überschritten.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Zu viele Anfragen
                id: '1'
        '500':
          description: Interner Serverfehler - Ein Fehler ist auf dem Server aufgetreten.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Interner Fehler
                id: '1'
        '503':
          description: >-
            Dienst nicht verfügbar - Der Dienst ist vorübergehend nicht
            verfügbar.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Dienst nicht verfügbar
                id: '1'
        '504':
          description: Gateway-Zeitüberschreitung - Die Anfrage dauerte zu lange.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway-Zeitüberschreitung
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    Base58String:
      type: string
      description: Eine base58-kodierte Zeichenkette.
      default: 3J98t1WpEZ73CNm
      example: 3J98t1WpEZ73CNm
    Limit:
      type: integer
      format: int64
      minimum: 0
    SerializablePubkey:
      type: string
      description: Ein öffentlicher Solana-Schlüssel als base58-Zeichenkette dargestellt.
      default: 11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR
      example: 11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
    TokenBalanceList:
      type: object
      required:
        - token_balances
      properties:
        cursor:
          $ref: '#/components/schemas/Base58String'
        token_balances:
          type: array
          items:
            $ref: '#/components/schemas/TokenBalance'
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: Die Version des JSON-RPC-Protokolls.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Der Fehlercode.
              example: -32602
            message:
              type: string
              description: Die Fehlermeldung.
            data:
              type: object
              description: Zusätzliche Daten zum Fehler.
        id:
          type: string
          description: Kennung, die der Anfrage entspricht.
          example: '1'
    TokenBalance:
      type: object
      required:
        - mint
        - balance
      properties:
        balance:
          $ref: '#/components/schemas/UnsignedInteger'
        mint:
          $ref: '#/components/schemas/SerializablePubkey'
    UnsignedInteger:
      type: integer
      default: 100
      example: 100
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Ihr Helius API-Schlüssel. Sie können einen kostenlos im
        [Dashboard](https://dashboard.helius.dev/api-keys) erhalten.

````