Guides
Find Who Holds a Specific Token
This guide shows you how to find all wallets that hold a specific NFT in a collection using the DAS API. This is useful for understanding token distribution, finding whale holders, or analyzing ownership patterns.
Method 1: Using Search Assets (Recommended)
The searchAssets
method is the most efficient way to find all holders of NFTs within a collection. getAssetsByGroup
is also a viable option, but it provides fewer filtering capabilities.
Method 2: Using Get Assets By Group
For collection-based NFTs, you can also use getAssetsByGroup
to find all NFTs in a collection. It is easier to use than searchAssets
but provides fewer options for further filtering.
Method 3: For Individual Tokens
If you want to find holders of a specific individual NFT (not part of a collection), you'll need to use the NFT's specific Address in getAsset
.
Tips and Best Practices
Handle Pagination: For large collections, always implement pagination to get all results.
Use Display Options: Enable
showCollectionMetadata
to get additional collection information.Cache Results: Where NFT holder data doesn't change frequently, consider caching results for better performance.
Rate Limiting: Be mindful of API rate limits when making multiple requests.