Skip to main content

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

string
Owner wallet (base-58).
string
Creator address (base-58).
boolean
With creatorAddress, match only verified creators.
string
Authority address (base-58).
[string, string]
Group key and value, for example ["collection", "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"].
string
Delegate address (base-58).
string
Asset interface, such as V1_NFT, ProgrammableNFT, MplCoreAsset or FungibleToken. See Asset object for the full list.
string
fungible, nonFungible, regularNFT, compressedNFT or all.
string
single (NFTs) or token (fungible tokens).
boolean
Match compressed or uncompressed assets.
boolean
Match assets that can be compressed.
boolean
Match frozen or unfrozen assets.
boolean
Match burned or live assets.
number
Match an exact supply.
string
Match by supply mint (base-58).
string
creators, fanout or single.
string
Royalty recipient address (base-58).
number
Royalty in basis points.
string
Exact metadata JSON URI.
string
Asset name. Requires ownerAddress.

Logic

string
all (default) or any.
boolean
Return assets that do not match.

Paging and output

number
Page number, starting at 1. See Pagination.
number
Results per page. Maximum and default 1,000.
string
Cursor from a previous response.
string
Return assets with IDs before this one.
string
Return assets with IDs after this one.
object
{ "sortBy": "id" | "created" | "updated" | "recent_action" | "none", "sortDirection": "asc" | "desc" }
object
Display options: showNativeBalance (with ownerAddress), showUnverifiedCollections, showCollectionMetadata, showInscription. Also accepted as displayOptions.

Response

A list with last_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

Common Errors