Overview
searchAssets combines filters in one query. Use it when no single getAssetsBy* method fits, for example “compressed NFTs in this collection owned by this wallet” or “fungible tokens this wallet holds”.
By default every filter must match (conditionType: "all"). Set conditionType: "any" to match assets that satisfy at least one filter, and negate: true to invert the result.
Parameters
Filters
Group key and value, for example
["collection", "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"].Asset interface, such as
V1_NFT, ProgrammableNFT, MplCoreAsset or FungibleToken. See Asset object for the full list.Logic
Paging and output
Page number, starting at 1. See Pagination.
{ "sortBy": "id" | "created" | "updated" | "recent_action" | "none", "sortDirection": "asc" | "desc" }Display options:
showNativeBalance (with ownerAddress), showUnverifiedCollections, showCollectionMetadata, showInscription. Also accepted as displayOptions.Response
A list withlast_indexed_slot, total, limit, page or cursor, items (asset objects) and, with showNativeBalance, nativeBalance.
Code Examples
Live NFTs in a collection
Fungible tokens a wallet holds
Compressed NFTs a wallet holds in one collection
Rust
Fungible tokens a wallet holds, with the OrbitFlare Rust SDK:.collection(), .compressed(), .interface() and .burnt().