Overview
searchAssets is the most flexible read method in the DAS API. It returns assets that match a combination of filters — owner, collection grouping, token type, and attributes — in a single paginated call. Use it whenever you need more than a single asset or a plain by-owner list.
tokenType is optional. When omitted, searchAssets returns regular and compressed NFTs only — no fungible tokens. To include fungible tokens, set tokenType (for example, "fungible" or "all"). Accepted values are fungible, nonFungible, regularNft, compressedNft, and all.
When to use this
UsesearchAssets when you are:
- Filtering a wallet’s assets to just fungible tokens or just NFTs
- Listing the assets a wallet owns within a specific collection
- Discovering compressed NFTs in bulk
- Building infinite scroll over large result sets with cursor pagination
- Filtering MPL Core assets by agent status or signer
getAsset; for a plain wallet listing use getAssetsByOwner.
API Reference
View detailed documentation for searchAssets
Quickstart
Choosing a tokenType
tokenType is optional and specifies what kind of assets appear in the response. When omitted, searchAssets returns regular and compressed NFTs only — set tokenType to include fungible tokens.
Accepted values:
fungible, nonFungible, regularNft, compressedNft, all. Defaults to regular and compressed NFTs when omitted.| tokenType | What you get | Typical use case |
|---|---|---|
fungible | SPL and Token-2022 tokens only | Wallet balances, token-gating |
nonFungible | All NFTs (compressed and regular) | Portfolio overview |
regularNft | Legacy and pNFTs (uncompressed) | Marketplace listings |
compressedNft | cNFTs only | Ultra-cheap mass mints |
all | Everything (tokens and NFTs) | Catch-all discovery |
Pagination and sorting
Solana wallets can own thousands of assets, so efficient paging matters:- Page / limit — classic pagination (
pagestarts at 1). Good for static views. - Cursor — pass
beforeoraftervalues from the previous response for fast, infinite scrolling.
sortBy
Display options
These flags add metadata; they never change which assets are returned.| Flag | Effect |
|---|---|
showNativeBalance | Includes the SOL balance of the wallet |
showCollectionMetadata | Adds collection-level JSON data |
showGrandTotal | Returns the total match count (slower) |
options
MPL Core agents, asset signers, and MIP-11 groups
MPL Core assets can expose agent identity and asset-signer metadata, and assets or collections may include agroups plugin (MIP-11) describing group membership. The same optional fields appear on every asset-returning DAS method (getAsset, getAssetBatch, getAssetsByOwner, getAssetsByGroup, getAssetsByCreator, getAssetsByAuthority, and each item in searchAssets).
Use searchAssets to filter by agent status or addresses:
| Parameter | Type | Purpose |
|---|---|---|
isAgent | boolean | Only assets with an Agent Identity |
agentToken | string | Match agent token mint (base58) |
assetSigner | string | Match asset-signer PDA (base58) |
interface to MplCoreAsset, MplCoreCollection, or MplCoreGroup for MPL Core–specific discovery.
is_agent, agent_token, and asset_signer are omitted when not applicable (for example, is_agent is omitted when false). See the searchAssets API reference for full schemas.
Examples
The first example shows the fullfetch wrapper. The remaining examples follow the same pattern and are collapsed — expand them for the request body.
Search for all fungible tokens in a wallet
Search for fungible tokens with native balance and token info
Search for fungible tokens with native balance and token info
Search for Drip NFTs owned by vibhu.sol
Search for Drip NFTs owned by vibhu.sol
Search for compressed assets in a wallet
Search for compressed assets in a wallet
Next steps
Pagination
Page-based and keyset pagination for large result sets.
Fungible Token Extension
How tokenType, balances, and prices appear in results.
searchAssets reference
Full request and response schemas.