The most comprehensive Solana API for NFTs, compressed NFTs, and tokens. Unified interface for all digital assets with high performance and complete metadata.
Quick Reference: The DAS API provides a unified interface for all Solana assets. Use getAsset for single assets, getAssetsByOwner for wallet holdings, searchAssets for filtered queries, and specialized methods for compressed NFTs.
The Digital Asset Standard (DAS) API is an open-source specification that provides a unified interface for interacting with all types of digital assets on Solana:
Regular NFTs (Non-Fungible Tokens)
Compressed NFTs (State Compression)
Fungible Tokens (including SPL Tokens and Token-2022)
Helius has extended the DAS API to support all tokens, including plain SPL tokens (without metadata) and Token-2022 (plus their extensions). Fungible token support is available through the getAssetsByOwner and searchAssets methods.
Report incorrect code
Copy
Ask AI
// Get all tokens for a wallet including price dataconst url = `https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY`;const getTokensWithPrices = async (ownerAddress) => { const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ jsonrpc: '2.0', id: 'my-request-id', method: 'getAssetsByOwner', params: { ownerAddress: ownerAddress, displayOptions: { showFungible: true, }, }, }), }); const { result } = await response.json(); // Filter tokens that have price data const tokensWithPrices = result.items.filter( asset => asset.token_info?.price_info ); return tokensWithPrices;};// Example usagegetTokensWithPrices("86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY");
Most NFT collections store additional metadata (attributes, images, etc.) off-chain on platforms like Arweave or IPFS. The DAS API automatically indexes this off-chain data and provides it alongside on-chain data in a single API call.
Helius cannot detect off-chain data mutations. The off-chain data will only be updated once the NFT is seen by the system again (e.g., when the NFT is modified on-chain). If you need the off-chain data for a collection to be re-indexed, please reach out to Helius support.