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

# Solana Wallet Token Holdings API V2

> Get every token a Solana wallet holds with USD value, 24h change, market cap, yield and pricing pool, sorted by value, amount or change.

Every token in the wallet, one row per token. Balances across several token accounts are added together. The wallet's SOL balance has its own row with `native: true`; wrapped SOL in a token account is a separate row.

Each row has the price in USD and SOL, the value, the 24-hour change, the market cap and `market`, the pool the price comes from. Yield-bearing tokens, such as liquid staking tokens and JLP, also have `apy` and `yearlyUsd`. Token names, symbols and logos are in `tokens`.

Tokens that represent a DeFi position, such as LP tokens, vault shares or lending receipts, are not listed here. They appear in [Get Wallet Positions](https://docs.solanatracker.io/data-api/wallet-v2/wallet/get-wallet-positions.md), so nothing is counted twice.

Tokens without a price have `priceUsd: null`, are not counted in net worth and are listed last. Use `minValue` to hide small balances.

**Paging.** Pass `nextCursor` as `cursor` until `hasNextPage` is `false`, keeping `sort`, `sortDirection` and `minValue` the same. Fetch all pages within about 2 minutes: after that, balances refresh and rows can shift between pages.

## SDK Example

```typescript
import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: 'YOUR_API_KEY' });

const data = await client.getWalletTokensV2('CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i', {
  sort: 'value', // Or 'amount' or 'change24h'.
  minValue: 1, // Hides tokens worth less than $1.
  limit: 100,
});

for (const row of data.holdings) {
  console.log(data.tokens[row.mint]?.symbol, row.amount, row.usd, row.market?.market);
}

// client.iterateWalletTokensV2() walks every page.
```


## OpenAPI

````yaml /data-api/wallet-v2/openapi.json get /v2/wallet/{wallet}/tokens
openapi: 3.1.0
info:
  title: Solana Tracker Wallet API v2
  version: 2.0.0
  description: >-
    What a Solana wallet holds and earns: its tokens and its DeFi positions on
    lending, liquidity, staking, leverage and order platforms, valued in USD and
    SOL, with yield, claimable rewards and net worth history. Percentages are
    plain numbers (6.99 means 6.99%) and times are Unix milliseconds unless
    stated otherwise.
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Production server
security:
  - apiKey: []
tags:
  - name: Wallet
    description: A wallet's net worth, tokens, DeFi positions and net worth history.
  - name: Platforms
    description: The DeFi platforms Wallet V2 supports.
paths:
  /v2/wallet/{wallet}/tokens:
    get:
      tags:
        - Wallet
      summary: Get Wallet Tokens
      description: >-
        Every token in the wallet, one row per token, with price, value, 24-hour
        change, yield for yield-bearing tokens, and the pool its price comes
        from.
      operationId: getWalletTokensV2
      parameters:
        - $ref: '#/components/parameters/Wallet'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/TokenSort'
        - $ref: '#/components/parameters/SortDirection'
        - $ref: '#/components/parameters/MinValue'
      responses:
        '200':
          description: A page of the wallet's tokens.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletV2TokensResponse'
              example:
                wallet: CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i
                slot: 475880510
                updatedAt: 1796067095507
                holdings:
                  - mint: So11111111111111111111111111111111111111112
                    native: true
                    amount: 90.206855417
                    priceUsd: 70.59621911611814
                    usd: 6368.262931
                    change24h:
                      usd: -143.111131
                      percent: -2.2
                    apy: null
                    yearlyUsd: null
                    accounts:
                      - CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i
                    priceSol: 1
                    marketCapUsd: 41798032000.91
                    market:
                      pool: 3ucNos4NbumPLZNWztqGHNFFgkHeRMBQAVemeeomsUxv
                      market: raydium-clmm
                      quoteToken: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                      liquidityUsd: 5463752.959761908
                      buys: 9655901
                      sells: 5678715
                      lpBurn: 0
                      createdAt: null
                      mintAuthority: null
                      freezeAuthority: null
                      volume24hUsd: 15002704.633705806
                  - mint: 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo
                    native: false
                    amount: 331.403437
                    priceUsd: 1.0001716013994661
                    usd: 331.460306
                    change24h:
                      usd: 0.047309
                      percent: 0.01
                    apy: null
                    yearlyUsd: null
                    accounts:
                      - CwqQ9ATCstxfuXK5KAMP6NZQk3yPeGukssdgZicK6V31
                    priceSol: 0.0141674952841
                    marketCapUsd: 688800917.2
                    market:
                      pool: 9tXiuRRw7kbejLhZXtxDxYs2REe43uH2e7k1kocgdM9B
                      market: orca
                      quoteToken: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                      liquidityUsd: 18880560.60595127
                      buys: 19790
                      sells: 36656
                      lpBurn: 0
                      createdAt: 1739746605000
                      mintAuthority: DRXA1H9SjZPyPCEeuAWpfwk8GqVW6dZsKFAtdfpFwApX
                      freezeAuthority: 2apBGMsS6ti9RyF5TwQTDswXBWskiJP2LD4cUEDqYJjk
                      volume24hUsd: 2984713.513107223
                  - mint: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
                    native: false
                    amount: 90.041275
                    priceUsd: 1
                    usd: 90.041275
                    change24h:
                      usd: 0
                      percent: 0
                    apy: null
                    yearlyUsd: null
                    accounts:
                      - 4PdxHm2q9pijHw1L2d3s52TwheVfAGuBYtXTXdJESVSZ
                    priceSol: 0.0141650645392
                    marketCapUsd: 3839903778.2
                    market:
                      pool: 7XawhbbxtsRcQA8KTkHT9f9nc6d69UwqCDh6U5EEbEmX
                      market: raydium
                      quoteToken: So11111111111111111111111111111111111111112
                      liquidityUsd: 837422.2772992249
                      buys: 863564
                      sells: 785526
                      lpBurn: 0
                      createdAt: null
                      mintAuthority: Q6XprfkF8RQQKoQVG33xT88H7wi8Uk1B1CC7YAs69Gi
                      freezeAuthority: Q6XprfkF8RQQKoQVG33xT88H7wi8Uk1B1CC7YAs69Gi
                      volume24hUsd: 100712.71976680927
                tokens:
                  So11111111111111111111111111111111111111112:
                    name: Wrapped SOL
                    symbol: SOL
                    decimals: 9
                    image: >-
                      https://image.solanatracker.io/proxy?url=https://static.datapi.jup.ag/token-icons/79a96c7b893fd899512411dd07a8adf6f9e26dd135989f51d46ddb50f0b8bb6c.webp
                    supply: 592071820.902525
                    uri: null
                    description: null
                    creator: null
                    createdOn: null
                    twitter: null
                    telegram: null
                    website: null
                  2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo:
                    name: PayPal USD
                    symbol: PYUSD
                    decimals: 6
                    image: >-
                      https://image.solanatracker.io/proxy?url=https://static.datapi.jup.ag/token-icons/0817b3345e648b1663385bac48eb086877635ee27639c3d5da2a4d9dfd8603b1.webp
                    supply: 688682738.280124
                    uri: >-
                      https://token-metadata.paxos.com/pyusd_metadata/prod/solana/pyusd_metadata.json
                    description: >-
                      PayPal USD is designed to contribute to the opportunity
                      stablecoins offer for payments and is 100% backed by U.S.
                      dollar deposits, short-term U.S Treasuries and similar
                      cash equivalents. PayPal USD is redeemable 1:1 for U.S.
                      dollars and is issued by Paxos Trust Company.
                    creator: null
                    createdOn: null
                    twitter: null
                    telegram: null
                    website: null
                  Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB:
                    name: USDT
                    symbol: USDT
                    decimals: 6
                    image: >-
                      https://image.solanatracker.io/proxy?url=https://static.datapi.jup.ag/token-icons/36574a5ee2cd469e059d070180985e59fbd57c82a54ea95763fab39973174100.webp
                    supply: 3839903778.200564
                    uri: null
                    description: null
                    creator: null
                    createdOn: null
                    twitter: null
                    telegram: null
                    website: null
                nextCursor: >-
                  eyJ2IjoyLCJhdCI6MTc5NjA2NzA5NTUwNywicyI6OTAuMDQxMjc1LCJ0IjoiRXM5dk1GcnphQ0VSbUpmckY0SDJGWUQ0S0NvTmtZMTFNY0NlOEJlbndOWUIiLCJxIjoidHx2YWx1ZXxkfDEifQ
                hasNextPage: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/Unavailable'
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getWalletTokensV2('CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i',
            {
              sort: 'value', // Or 'amount' or 'change24h'.
              minValue: 1, // Hides tokens worth less than $1.
              limit: 100,
            });


            for (const row of data.holdings) {
              console.log(data.tokens[row.mint]?.symbol, row.amount, row.usd, row.market?.market);
            }


            // client.iterateWalletTokensV2() walks every page.
      x-code-samples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getWalletTokensV2('CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i',
            {
              sort: 'value', // Or 'amount' or 'change24h'.
              minValue: 1, // Hides tokens worth less than $1.
              limit: 100,
            });


            for (const row of data.holdings) {
              console.log(data.tokens[row.mint]?.symbol, row.amount, row.usd, row.market?.market);
            }


            // client.iterateWalletTokensV2() walks every page.
components:
  parameters:
    Wallet:
      name: wallet
      in: path
      required: true
      schema:
        type: string
        default: CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i
      description: Wallet address.
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 100
      description: Rows per page, up to 500. Larger values return 500 rows.
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
      description: >-
        `nextCursor` from the previous page. Keep the other parameters the same,
        or the request returns a 400.
    TokenSort:
      name: sort
      in: query
      schema:
        type: string
        enum:
          - value
          - amount
          - change24h
        default: value
      description: >-
        `value` sorts by USD value (default), `amount` by token amount and
        `change24h` by the 24-hour price change.
    SortDirection:
      name: sortDirection
      in: query
      schema:
        type: string
        enum:
          - DESC
          - ASC
        default: DESC
      description: >-
        `DESC` for largest first (default) or `ASC` for smallest first. Rows
        without a value always come last.
    MinValue:
      name: minValue
      in: query
      schema:
        type: number
        minimum: 0
      description: >-
        Only tokens worth at least this many USD. Tokens without a price are
        left out.
  schemas:
    WalletV2TokensResponse:
      type: object
      required:
        - wallet
        - slot
        - updatedAt
        - holdings
        - tokens
        - nextCursor
        - hasNextPage
      properties:
        wallet:
          type: string
        slot:
          type: integer
          description: Solana slot the data was fetched at.
        updatedAt:
          type: integer
          description: When the data was fetched, in Unix milliseconds.
        holdings:
          type: array
          items:
            $ref: '#/components/schemas/WalletV2Token'
        tokens:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/TradeTokenV2'
          description: >-
            Details of each token on the page: name, symbol, decimals, logo and
            supply, plus metadata link, description, creator and socials when
            known.
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass as `cursor` to get the next page. Null on the last page.
        hasNextPage:
          type: boolean
    WalletV2Token:
      type: object
      description: >-
        A token in the wallet. Values are in USD and percentages are plain
        numbers (6.99 means 6.99%). Unknown values are null.
      required:
        - mint
        - native
        - amount
        - priceUsd
        - usd
        - change24h
        - apy
        - yearlyUsd
        - accounts
        - priceSol
        - marketCapUsd
        - market
      properties:
        mint:
          type: string
        native:
          type: boolean
          description: >-
            `true` on the row for the wallet's SOL balance. Wrapped SOL in a
            token account is a separate row.
        amount:
          type: number
          description: >-
            Amount in whole tokens, across all of the wallet's token accounts.
            Already adjusted for decimals.
        priceUsd:
          type:
            - number
            - 'null'
          description: Price of one token in USD. Null when no price is available.
        usd:
          type:
            - number
            - 'null'
          description: >-
            Value in USD (`amount` × `priceUsd`). Null when there is no price;
            the token is then not counted in totals.
        change24h:
          type: object
          required:
            - usd
            - percent
          description: >-
            How much this holding's value changed in 24 hours because of the
            price move. Both fields are null when the price 24 hours ago is
            unknown.
          properties:
            usd:
              type:
                - number
                - 'null'
              description: Change in USD.
            percent:
              type:
                - number
                - 'null'
              description: Change in percent.
        apy:
          type:
            - number
            - 'null'
          description: >-
            Yearly yield in percent for yield-bearing tokens, such as liquid
            staking tokens and JLP. Null for other tokens.
        yearlyUsd:
          type:
            - number
            - 'null'
          description: >-
            USD the holding earns per year at that rate. Null without a rate or
            price.
        accounts:
          type: array
          items:
            type: string
          description: >-
            The token accounts holding this token. On the SOL row, the wallet
            address.
        priceSol:
          type:
            - number
            - 'null'
          description: Price of one token in SOL. Null when no price is available.
        marketCapUsd:
          type:
            - number
            - 'null'
          description: Price times total supply, in USD. Null when unknown.
        market:
          oneOf:
            - $ref: '#/components/schemas/WalletV2Market'
            - type: 'null'
          description: >-
            The pool the token's price comes from. Null when the token is priced
            another way (for example, a liquid staking token priced by its
            exchange rate) or has no price.
    TradeTokenV2:
      type: object
      description: Token details, current at the time of the request.
      required:
        - name
        - symbol
        - decimals
        - image
        - supply
      properties:
        name:
          type:
            - string
            - 'null'
        symbol:
          type:
            - string
            - 'null'
        decimals:
          type:
            - integer
            - 'null'
        image:
          type:
            - string
            - 'null'
        supply:
          type:
            - number
            - 'null'
          description: Current supply, in whole tokens.
        uri:
          type:
            - string
            - 'null'
          description: Metadata link, when known.
        description:
          type:
            - string
            - 'null'
          description: At most 2,000 characters.
        creator:
          type:
            - string
            - 'null'
        createdOn:
          type:
            - string
            - 'null'
        twitter:
          type:
            - string
            - 'null'
        telegram:
          type:
            - string
            - 'null'
        website:
          type:
            - string
            - 'null'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message.
    WalletV2Market:
      type: object
      description: >-
        The pool a token's price comes from: the most liquid pool with a recent,
        reliable price.
      required:
        - pool
        - market
        - quoteToken
        - liquidityUsd
        - volume24hUsd
        - buys
        - sells
        - lpBurn
        - createdAt
        - mintAuthority
        - freezeAuthority
      properties:
        pool:
          type: string
          description: Pool address.
        market:
          type:
            - string
            - 'null'
          description: >-
            DEX of the pool, such as `raydium`, `orca`, `meteora-dlmm` or
            `pumpfun-amm`.
        quoteToken:
          type:
            - string
            - 'null'
          description: The token it is paired with in the pool.
        liquidityUsd:
          type:
            - number
            - 'null'
          description: Liquidity in the pool, in USD.
        volume24hUsd:
          type:
            - number
            - 'null'
          description: >-
            Volume in the pool over the last 24 hours, in USD. Null when
            unknown.
        buys:
          type:
            - number
            - 'null'
          description: Total number of buys in the pool.
        sells:
          type:
            - number
            - 'null'
          description: Total number of sells in the pool.
        lpBurn:
          type:
            - number
            - 'null'
          description: Share of the pool's LP tokens that are burned, in percent.
        createdAt:
          type:
            - number
            - 'null'
          description: When the pool was created, in Unix milliseconds. Null when unknown.
        mintAuthority:
          type:
            - string
            - 'null'
          description: Address that can mint more of the token. Null when nobody can.
        freezeAuthority:
          type:
            - string
            - 'null'
          description: Address that can freeze token accounts. Null when nobody can.
  responses:
    BadRequest:
      description: Invalid wallet address or query parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: 'Invalid sort. Valid options are: value, amount, change24h'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unavailable:
      description: The wallet can't be loaded right now. Retry after `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            example: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Wallet data is temporarily unavailable, please retry
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.