Digital Asset Standard (DAS) API
The most comprehensive and performant API for tokens, NFTs, and compressed NFTs on Solana.
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.
What is DAS?
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)
- Inscriptions and SPL-20 tokens (experimental)
Mainnet Endpoint
https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY
Devnet Endpoint
https://devnet.helius-rpc.com/?api-key=YOUR_API_KEY
- Unified access to all Solana asset types
- Comprehensive metadata retrieval
- Off-chain data indexing (Arweave, IPFS)
- Merkle proof support for compressed assets
- Token price data for verified tokens
- Advanced filtering and search capabilities
- Unified access to all Solana asset types
- Comprehensive metadata retrieval
- Off-chain data indexing (Arweave, IPFS)
- Merkle proof support for compressed assets
- Token price data for verified tokens
- Advanced filtering and search capabilities
- NFT marketplaces and storefronts
- Wallet applications and portfolio trackers
- Token-gated applications
- Creator dashboards and analytics tools
- NFT collection explorers
- DeFi applications requiring token data
API Methods
Single Asset
Get detailed data for specific assets
Asset Collections
Get assets by owner, creator, or collection
Advanced Queries
Search and filter assets with complex criteria
Fetching Individual Assets
These methods let you retrieve detailed information about specific assets by their IDs.
Fetching Asset Collections
These methods allow you to retrieve assets based on ownership, creation, authority, or collection membership.
All pagination in DAS API methods starts at 1 (not 0).
Advanced Query Methods
These methods allow for more specialized asset queries, including transaction history, NFT editions, and complex search filters.
Working with Special Asset Types
Fungible Tokens
Access SPL tokens and get price data
Compressed NFTs
Work with state-compressed assets
Inscriptions
Access inscription and SPL-20 data
Off-chain Data
Retrieve metadata from Arweave/IPFS
Fungible Tokens
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.
Compressed NFTs
State-compressed NFTs (cNFTs) require special handling for operations like retrieving Merkle proofs and transaction history:
Inscriptions & SPL-20
You can optionally display inscription and SPL-20 token data with the showInscription
flag. This is an experimental feature.
Off-chain Data
Best Practices
Pagination
- Start at page 1 (not 0)
- Use reasonable limit values (100-1000)
- Implement robust pagination for large datasets
Error Handling
- Always check for errors in responses
- Implement retries with exponential backoff
- Handle edge cases like invalid parameters
Performance
- Use batch methods when possible
- Cache responses when appropriate
- Avoid chaining multiple requests when one will do
Security
- Never expose your API key in client-side code
- Use server-side functions to proxy API requests
- Set up appropriate CORS policies