Who holds every item in a collection
get_collection_holdersGet every asset in a Solana Core collection with its current owner, directly from the chain. Includes unlisted items invisible to marketplace tools; filter by trait or name prefix.
Instructions
CENSUS of a Core collection: every asset grouped under it, with its current owner, straight from the chain's asset index. This is the only tool that sees items NOBODY HAS LISTED - every other collection-wide tool reads a marketplace's listing book, so an unsold item is invisible to them. Answers 'who won the 36 packs from that drop', 'is one wallet holding half the supply', 'how many are still with the issuer', 'which wallets hold this set'. Filter to part of a collection with trait/value (e.g. Item Type = Pack) or namePrefix (e.g. 'Gold Series - Aces'). Returns the rows plus a holder count per address, largest first. Every holder row carries a ROLE: issuer (the collection's update authority, read from the chain: the issuer's key, which says nothing about how an item got there), venue-escrow (listed), wallet, or unknown (the collection account could not be read, so nobody could be checked against the issuer's key). An item currently listed for sale shows the MARKETPLACE'S ESCROW as its owner, not the seller: call get_asset_provenance on that mint to see who handed it over.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Most assets to read from the index before truncating. Default 2000. | |
| trait | No | Trait name to filter on, e.g. 'Item Type'. Case-insensitive. Needs `value` too. | |
| value | No | Trait value to keep, e.g. 'Pack'. Case-insensitive. | |
| collection | Yes | Core collection ADDRESS. Use identify or search_collections to turn a name into one. | |
| namePrefix | No | Keep only assets whose name starts with this, e.g. 'Gold Series - Aces'. Case-insensitive. |