Theme

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.

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 MplCoreAssets.

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

  1. Use interface filtering to get only NFTs (e.g. exclude fungible tokens)
  2. Implement pagination for wallets with many NFTs
  3. Cache results to improve performance for frequent queries
  4. Include display options to get additional metadata
  5. Sort results to present data in meaningful ways
  6. Filter by collections to focus on specific NFT types

Further Reading

Previous
Get Collection NFTs