Theme

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.

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

  1. Use Display Options: Enable showCollectionMetadata and showFungible or other options like showInscription to get complete token information.

  2. Handle Pagination: For wallets with many tokens, always implement pagination.

  3. Filter by Interface: Use the interface parameter to get specific token types.

  4. Cache Results: Wallet contents don't change frequently, so consider caching for better performance.

  5. Rate Limiting: Be mindful of API rate limits when making multiple requests.

Previous
Get NFTs by Owner