Search Assets
Master the searchAssets endpoint to discover NFTs, compressed assets, and fungible tokens on Solana.
The Digital Asset Standard (DAS) API lets you query any on-chain asset—regular NFTs, compressed NFTs (cNFTs), programmable NFTs (pNFTs), Token-22s, and classic SPL tokens—with a single, flexible endpoint: searchAssets
.
API Reference
View detailed documentation for searchAssets
Whether you’re building a marketplace, portfolio tracker, token-gated experience, or simply need a Swiss-army knife for on-chain discovery, this guide will walk you from “hello world” to advanced, production-ready queries.
Quick Start
The page
parameter starts at 1. For blazing-fast infinite scrolling, use cursor pagination (before
/after
).
Core Concepts
1. Choosing a tokenType
A required string that specifies what kind of assets you want in the response.
Accepted values: fungible
, nonFungible
, regularNft
, compressedNft
, all
.
tokenType | What you get | Typical use-case |
---|---|---|
fungible | SPL & Token-22 tokens only | Wallet balances, token-gating |
nonFungible | All NFTs (compressed and regular) | Portfolio overview |
regularNft | Legacy & pNFTs (uncompressed) | Marketplace listings |
compressedNft | cNFTs only | Ultra-cheap mass mints |
all | Everything (tokens and NFTs) | Catch-all discovery |
2. Pagination & Sorting
Solana wallets can own thousands of assets—efficient paging matters.
- Page / Limit – classic pagination (
page
starts at 1). Good for static views. - Cursor – pass
before
orafter
values from the previous response for fast, infinite scrolling.
For full code samples on page/limit and cursor-based strategies, visit the dedicated Pagination guide.
3. Display Options (options
)
These flags add metadata; they never change which assets are returned.
Flag | Effect |
---|---|
showNativeBalance | Includes SOL balance of the wallet |
showCollectionMetadata | Adds collection-level JSON data |
showGrandTotal | Returns the total match count (slower) |
showInscription | Appends inscription & SPL-20 info (experimental) |