Guides
Get All Tokens in a Wallet
This guide shows you how to retrieve all tokens (NFTs, fungible tokens, and other digital assets) owned by a specific wallet address using the DAS API.
Method 1: Using Get Assets By Owner (Recommended)
The getAssetsByOwner
method is the most direct way to get all tokens owned by a wallet.
Method 2: Using Search Assets with Owner Filter
You can also use searchAssets
with an owner filter for more specific queries. This method is not supported by all DAS API Providers.
Tips and Best Practices
Use Display Options: Enable
showCollectionMetadata
andshowFungible
or other options likeshowInscription
to get complete token information.Handle Pagination: For wallets with many tokens, always implement pagination.
Filter by Interface: Use the
interface
parameter to get specific token types.Cache Results: Wallet contents don't change frequently, so consider caching for better performance.
Rate Limiting: Be mindful of API rate limits when making multiple requests.