How to get token and NFT metadata on Solana
Fetch images, attributes, prices, and metadata for any NFT or token. One API call works for standard NFTs, compressed NFTs, and fungible tokens.
What can I look up?
The Helius getAsset method returns parsed metadata for any Solana asset. No need to decode accounts or fetch off-chain JSON yourself.
NFT metadata
Get image URL, attributes, collection, royalties, and creators. Works with standard NFTs and pNFTs.
Token info + price
Get supply, decimals, token program, and real-time USD price for fungible tokens like USDC, JUP, or BONK.
Compressed NFTs
Same metadata as standard NFTs. Pass the asset ID from the Merkle tree instead of a mint address.
API Tips
- Fungible tokens: Always include
showFungible: truein displayOptions to get token details. - Compressed NFTs: Use the asset ID (from Merkle tree), not a mint address. Find cNFT IDs via
getAssetsByOwner. - Price data: Cached with 10-minute TTL. Not available for all tokens.