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

# Get Wallet Balances

> Retrieve token balances and SOL holdings for a Solana wallet address.

Each request costs **100 credits**.

## Request Parameters

<ParamField body="wallet" type="string" required>
  Solana wallet address (base58 encoded)
</ParamField>

<ParamField body="page" type="number" default="1">
  Page number for pagination (1-indexed)
</ParamField>

<ParamField body="limit" type="number" default="100">
  Maximum number of tokens per page
</ParamField>

<ParamField body="showZeroBalance" type="boolean" default="false">
  Include tokens with zero balance
</ParamField>

<ParamField body="showNative" type="boolean" default="true">
  Include native SOL in results
</ParamField>

<ParamField body="showNfts" type="boolean" default="false">
  Include NFTs in results (max 100, first page only)
</ParamField>


## OpenAPI

````yaml openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/balances
openapi: 3.0.3
info:
  title: Wallet API
  description: >
    A high-performance REST API for querying Solana wallet data including
    balances, transaction history, transfers, and identity information.


    ## Authentication


    All requests require an API key passed either as:

    - Query parameter: `?api-key=YOUR_API_KEY`

    - Header: `X-Api-Key: YOUR_API_KEY`
  version: 1.0.0
  contact:
    name: API Support
    url: https://helius.dev
servers:
  - url: https://api.helius.xyz
    description: Production server
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
tags:
  - name: Identity
    description: Lookup wallet identities and known addresses
  - name: Balances
    description: Query token and NFT balances
  - name: History
    description: Transaction history and balance changes
  - name: Transfers
    description: Token transfer activity
  - name: Funding
    description: Wallet funding information
paths:
  /v1/wallet/{wallet}/balances:
    get:
      tags:
        - Balances
      summary: Get wallet balances
      description: >
        Retrieve token and NFT balances for a wallet. **Pagination is manual** -
        the API returns up to 100 tokens per request.


        Results are sorted by USD value in descending order. Tokens with pricing
        data appear first, followed by tokens without prices.


        **Pagination:** Use the `page` parameter to fetch additional pages. The
        response includes `pagination.hasMore`

        to indicate if more results are available. Each request makes a single
        API call and costs 100 credits.
      operationId: getWalletBalances
      parameters:
        - $ref: '#/components/parameters/WalletAddress'
        - name: page
          in: query
          description: Page number for pagination (1-indexed)
          schema:
            type: integer
            minimum: 1
            default: 1
          example: 1
        - name: limit
          in: query
          description: Maximum number of tokens per page
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 100
          example: 100
        - name: showZeroBalance
          in: query
          description: Include tokens with zero balance
          schema:
            type: boolean
            default: false
        - name: showNative
          in: query
          description: Include native SOL in results
          schema:
            type: boolean
            default: true
        - name: showNfts
          in: query
          description: Include NFTs in results (max 100, first page only)
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Wallet balances retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalancesResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    WalletAddress:
      name: wallet
      in: path
      required: true
      description: Solana wallet address (base58 encoded)
      schema:
        type: string
        pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
      example: GQUtvPx89ZNCwmvQqFmH59bJcU8fW8siETpaxod7Aydz
  schemas:
    BalancesResponse:
      type: object
      properties:
        balances:
          type: array
          items:
            $ref: '#/components/schemas/TokenBalance'
          description: >
            Array of token balances for the current page, including native SOL.

            When showNative=true, SOL appears as the first element with mint
            address So11111111111111111111111111111111111111112.

            Other tokens are sorted by USD value (descending).
        nfts:
          type: array
          items:
            $ref: '#/components/schemas/Nft'
          description: >-
            Array of NFT holdings (only included if showNfts=true, max 100,
            first page only)
        totalUsdValue:
          type: number
          description: Total USD value of balances on this page (not total portfolio value)
          example: 217.98
        pagination:
          type: object
          description: >-
            Pagination metadata. Users must manually request additional pages
            using the page parameter.
          properties:
            page:
              type: integer
              description: Current page number
              example: 1
            limit:
              type: integer
              description: Number of items per page
              example: 100
            hasMore:
              type: boolean
              description: >-
                True if more results are available. Increment the page parameter
                to fetch the next page.
              example: true
          required:
            - page
            - limit
            - hasMore
      required:
        - balances
        - totalUsdValue
        - pagination
    TokenBalance:
      type: object
      properties:
        mint:
          type: string
          description: Token mint address
          example: So11111111111111111111111111111111111111112
        symbol:
          type: string
          nullable: true
          description: Token symbol
          example: SOL
        name:
          type: string
          nullable: true
          description: Token name
          example: Solana
        balance:
          type: number
          description: Token balance (adjusted for decimals)
          example: 1.5
        decimals:
          type: integer
          description: Number of decimal places
          example: 9
        pricePerToken:
          type: number
          nullable: true
          description: Price per token in USD
          example: 145.32
        usdValue:
          type: number
          nullable: true
          description: Total USD value of holdings
          example: 217.98
        logoUri:
          type: string
          nullable: true
          description: URL to token logo image
          example: https://example.com/sol-logo.png
        tokenProgram:
          type: string
          enum:
            - spl-token
            - token-2022
          description: >-
            Token program type (spl-token for legacy, token-2022 for new
            standard)
          example: spl-token
      required:
        - mint
        - balance
        - decimals
        - tokenProgram
    Nft:
      type: object
      properties:
        mint:
          type: string
          description: NFT mint address
          example: 7Xq8wXyXVqfBPPqVJjPDwG9zN5wCVxBYZ6z7vPYBzr6F
        name:
          type: string
          nullable: true
          description: NFT name
          example: Degen Ape
        imageUri:
          type: string
          nullable: true
          description: NFT image URI
          example: https://example.com/nft.png
        collectionName:
          type: string
          nullable: true
          description: Collection name
          example: Degen Ape Academy
        collectionAddress:
          type: string
          nullable: true
          description: Collection address
          example: DegN1dXmU2uYa4n7U9qTh7YNYpK4u8L9qXx7XqYqJfGH
        compressed:
          type: boolean
          description: Whether this is a compressed NFT
          example: false
      required:
        - mint
        - compressed
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
          example: Invalid wallet address
        code:
          type: integer
          description: HTTP status code
          example: 400
        details:
          type: string
          description: Additional error details
          example: '''invalid-address'' is not a valid Solana address'
      required:
        - error
        - code
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid wallet address
            code: 400
            details: '''invalid-address'' is not a valid Solana address'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: API key required. Pass via ?api-key=xxx or X-Api-Key header
            code: 401
    RateLimited:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: RATE_LIMIT_EXCEEDED
            code: 429
            details: Too many requests. Retry after 2 seconds.
    InternalError:
      description: Transient server error. Retryable with exponential backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INTERNAL_ERROR
            code: 500
            details: An unexpected error occurred. Please retry.
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: API key passed as query parameter
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: API key passed in request header

````