Overview
This guide covers reading fungible tokens on Solana: account balances, token accounts by owner or mint, total supply, largest holders, and the DAS fungible token extension. Helius exposes both standard Solana RPC token methods and DAS methods that add metadata and USD prices. For NFTs, compressed NFTs, editions, and proofs, see the Get Assets guide. This page focuses on fungible (SPL and Token-2022) tokens.When to use this
Use the methods on this page when you are:- Reading the balance of a single token account
- Listing every token account a wallet holds
- Finding all accounts that hold a specific mint
- Checking a token’s total supply or its largest holders
- Fetching token metadata and USD price alongside balances
Token account balance
Get the balance for a specific token account using standard RPC:API Reference
getTokenAccountBalance
Token accounts by owner
List all token accounts owned by a wallet:API Reference
getTokenAccountsByOwner
Token accounts by mint
List all accounts holding a specific token:API Reference
getTokenAccountsByOwner
getTokenAccounts method described below.
Token supply
Check the total supply of a token:API Reference
getTokenSupply
Largest token holders
Identify the largest accounts holding a token:API Reference
getTokenLargestAccounts
Token accounts with the DAS API
The DASgetTokenAccounts method returns token accounts by mint or owner, including balances, in a single paginated call. Unlike getTokenAccountsByOwner, you can query by mint alone to list every account holding a token across all owners.
API Reference
getTokenAccounts
Token metadata and price with the DAS API
For token metadata and USD price, call the DASgetAsset method with showFungible enabled. Prices for verified tokens are returned under token_info.price_info.
Price data from
getAsset is cached for up to 600 seconds, so it can be up to 10 minutes old.API Reference
getAsset
token_info:
Calculate market cap
Multiply the price by the decimal-adjusted supply:getAssetsByOwner or searchAssets with tokenType: "fungible". See the fungible token extension for how tokenType, balances, Token-2022 extensions, and price data appear in the response.
Best practices
- Use pagination for methods that return large result sets. See the Pagination guide.
- Prefer DAS methods (
getAsset,getAssetsByOwner,getTokenAccounts) when you need metadata or USD prices; use standard RPC methods for raw on-chain balances and supply. - Handle errors gracefully with try/catch blocks and retries.
- Cache responses when appropriate to reduce API calls.
Next steps
Fungible Token Extension
How DAS returns fungible tokens, Token-2022 extensions, and prices.
Get Assets (NFTs)
Retrieve NFTs, compressed NFTs, editions, and proofs.
DAS API reference
Full schemas for every DAS method.