Fungible Token Info

Get fungible token info using the getAsset DAS API with showFungible: true. Returns supply, decimals, token program, and price data.

Try It

Code Example

// Get fungible token info by mint address
import { Helius } from 'helius-sdk';

const helius = new Helius('YOUR_API_KEY');

async function getTokenInfo(mintAddress: string) {
const asset = await helius.getAsset({
id: mintAddress,
displayOptions: {
showFungible: true // Important! Include token details
}
});

return {
name: asset.content?.metadata?.name,
symbol: asset.content?.metadata?.symbol,
decimals: asset.token_info?.decimals,
supply: asset.token_info?.supply,
price: asset.token_info?.price_info?.price_per_token
};
}

// Usage - USDC
const USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
const token = await getTokenInfo(USDC_MINT);
console.log(`${token.name} (${token.symbol})`);
console.log(`Price: $${token.price}`);

Common Token Mints

USDCEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
USDTEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
BONKDezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
JUPJUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN

API Tips

  • Important: Always include showFungible: true in displayOptions to get token details (supply, decimals, price).
  • Price data: Token prices are cached with a 10-minute TTL. Not all tokens have price data.
  • Interface types: Fungible tokens return either "FungibleToken" or "FungibleAsset" interface.

Frequently Asked Questions

How do I get token supply and decimals on Solana?
Use the getAsset DAS API with the token mint address and showFungible: true in displayOptions. The response includes supply, decimals, and price data in the token_info field.
Why do I need showFungible: true?
By default, getAsset returns minimal data. Setting showFungible: true includes the token_info object with supply, decimals, token standard, and price information.
Does the API include token prices?
Yes, price data is included for tokens with sufficient liquidity. Prices are cached with a 10-minute TTL. Check the token_info.price_info field for price per token and total price.