Guides
Get Fungible Assets by Owner
This guide shows you how to retrieve all fungible tokens (like SPL tokens, SOL, etc.) owned by a specific wallet address using the DAS API.
Method 1: Using Search Assets with Interface Filter (Recommended)
The most effective way to get fungible assets is using searchAssets
with the FungibleToken
interface filter. It only returns fungible assets, so you don't need to filter for them.
While this method is the most effective, it's not supported by all DAS API Providers currently.
Method 2: Using Get Assets By Owner with Filtering
You can also use getAssetsByOwner
and filter the results client-side:
Method 3: Filtering by Token Properties
You can filter fungible tokens by various properties:
Tips and Best Practices
- Use Interface Filter: see Search Assets by Criteria for more information.
- Enable Show Fungible: Use
showFungible: true
in display options to get complete token information as shown in Display Options. - Consider Decimals: Check the
decimals
field to properly format token amounts. - Cache Results: Token balances change frequently, but token metadata is relatively stable.