Helius SDK - v2.2.2
    Preparing search index...

    Interface GetBalancesResponse

    Response from getBalances endpoint

    interface GetBalancesResponse {
        balances: TokenBalance[];
        nfts?: Nft[];
        pagination: { hasMore: boolean; limit: number; page: number };
        totalUsdValue: number;
    }
    Index

    Properties

    balances: TokenBalance[]

    Array of token balances for the current page. When showNative=true, SOL appears with mint address So11111111111111111111111111111111111111112. Results are sorted by USD value (descending).

    nfts?: Nft[]

    Array of NFT holdings (only included if showNfts=true, max 100, first page only)

    pagination: { hasMore: boolean; limit: number; page: number }

    Pagination metadata. Users must manually request additional pages using the page parameter.

    Type Declaration

    • hasMore: boolean

      True if more results are available. Increment the page parameter to fetch the next page.

    • limit: number

      Number of items per page

    • page: number

      Current page number

    totalUsdValue: number

    Total USD value of balances on this page (not total portfolio value)