How to get Assets
Learn how to retrieve and query data for all Solana assets including NFTs and SPL tokens using Helius APIs
Quick Reference: Use getAsset
for single assets, getAssetsByOwner
for wallet holdings, searchAssets
for filtered queries, and access real-time price data for Jupiter verified tokens.
The Helius Digital Asset Standard (DAS) API provides powerful tools for reading and querying both NFT and token data on Solana. This guide shows you how to work with different types of Solana assets effectively.
Query NFTs
Retrieve, search, and manage NFT data and collections
Access SPL Tokens
Get token balances, accounts, and holder information
Token Pricing
Access real-time price data for Jupiter verified tokens
API Reference
View detailed API documentation
Price Data for Jupiter Verified Tokens
API Reference
View detailed documentation for getAsset
Response Structure
The price data is available in the response under token_info.price_info
:
Calculating Market Cap
To calculate a token’s market cap, multiply its price by the total supply:
This calculation gives you the total market valuation of the token.
Working with NFTs and Digital Collectibles
The DAS API offers several methods for working with NFTs and digital collectibles. These methods allow you to retrieve individual assets, query by owner or creator, and verify on-chain authenticity.
Getting a Single NFT
Retrieve comprehensive data for a specific NFT:
Getting a Single NFT
Retrieve comprehensive data for a specific NFT:
Finding NFTs by Owner
Retrieve all NFTs owned by a specific wallet address:
Searching Assets with Advanced Filters
Search for assets by various attributes with detailed filters:
getAsset
Detailed data for a single asset
getAssetsByOwner
All assets owned by an address
searchAssets
Filter assets by multiple criteria
Advanced NFT Query Methods
By Creator
By Collection
Transaction History
On-Chain Proof
Working with SPL Tokens
SPL tokens can be queried through multiple methods in the Helius API. These methods let you check balances, find token accounts, and get token metadata.
Common SPL Token Operations
Advanced SPL Token Queries
You can also find all accounts holding a specific token mint:
Best Practices
When working with the DAS API, keep these best practices in mind:
- Use pagination for methods that return large data sets
- Handle errors gracefully by implementing try/catch blocks
- Cache responses when appropriate to reduce API calls
- Respect rate limits to avoid disruptions in your application
- Verify Jupiter price data is available before calculating market cap