Guides
Get NFTs by Owner
Get NFTs by Owner
This guide shows you how to retrieve all non-fungible tokens (NFTs) owned by a specific wallet address using the DAS API. This is useful for building NFT galleries, portfolio trackers, or marketplace features.
Method 1: Using Get Assets By Owner with Interface Filter (Recommended)
The getAssetsByOwner
method combined with interface filtering is the most efficient way to get NFTs owned by a specific wallet, it only returns the NFTs that apply to the interface filter, e.g. MplCoreAsset
would not return compressed NFTs.
Method 2: Using Search Assets with Owner and Interface Filter
You can use searchAssets
to get more specific results with additional filters like interface to get only MplCoreAsset
s.
Method 3 – Filter NFTs by Collection
You can filter NFTs by specific collections in addition to the wallet address—for example when looking for NFTs from your own collection.
Common Use Cases
- NFT Galleries: Display all NFTs owned by a user
- Portfolio Trackers: Monitor NFT holdings
- Marketplace Integration: Show user's NFT inventory
- Collection Management: Organize NFTs by collections
- Gaming Applications: Load user's NFT game assets
Tips and Best Practices
- Use interface filtering to get only NFTs (e.g. exclude fungible tokens)
- Implement pagination for wallets with many NFTs
- Cache results to improve performance for frequent queries
- Include display options to get additional metadata
- Sort results to present data in meaningful ways
- Filter by collections to focus on specific NFT types
Further Reading
- Get Assets By Creator - Discover all tokens created by a specific address
- Get All Tokens in a Collection - Retrieve all assets from a specific collection
- Search Assets by Multiple Criteria - Combine multiple filters for advanced queries