Search Assets
Search for assets using a variety of parameters.
Parameters
-
negateboolean
Indicates whether the search criteria should be inverted or not. -
conditionTypestring
Indicates whether to retrieve all ("all") or any ("any") asset that matches the search criteria. -
interfacestring
The interface value (one of ["V1_NFT", "V1_PRINT", "LEGACY_NFT", "V2_NFT", "FungibleAsset", "Custom", "Identity", "Executable", "MplCoreCollection", "MplCoreAsset"]). -
ownerAddressstring
The address of the owner. -
ownerTypestring
Type of ownership ["single", "token"]. -
creatorAddressstring, required
The address of the creator. -
creatorVerifiedboolean
Indicates whether the creator must be verified or not. -
authorityAddressstring
The address of the authority. -
groupingobject
The grouping ["key", "value"] pair. -
delegateAddressstring
The address of the delegate. -
frozenboolean
Indicates whether the asset is frozen or not. -
supplynumber
The supply of the asset. -
supplyMintstring
The address of the supply mint. -
compressedboolean
Indicates whether the asset is compressed or not. -
compressibleboolean
Indicates whether the asset is compressible or not. -
royaltyTargetTypestring
Type of royalty ["creators", "fanout", "single"]. -
royaltyTargetstring
The target address for royalties. -
royaltyAmountnumber
The royalties amount. -
burntboolean
Indicates whether the asset is burnt or not. -
sortByobject
Sorting criteria. This is specified as an object{ sortBy: <value>, sortDirection: <vlaue> }, where sortBy is one of ["created", "updated", "recentAction", "none"] and sortDirection is one of ["asc", "desc"]. -
limitnumber
The maximum number of assets to retrieve. -
pagenumber
The index of the "page" to retrieve. -
beforestring
Retrieve assets before the specified ID. -
afterstring
Retrieve assets after the specified ID. -
jsonUristring
The value for the JSON URI.
Example Request
curl --request POST --url "<ENDPOINT>" --header 'Content-Type: application/json' --data '{
"jsonrpc": "2.0",
"method": "searchAssets",
"params": {
"ownerAddress": "N4f6zftYsuu4yT7icsjLwh4i6pB1zvvKbseHj2NmSQw",
"jsonUri": "https://arweave.net/c9aGs5fOk7gD4wWnSvmzeqgtfxAGRgtI1jYzvl8-IVs/chiaki-violet-azure-common.json",
"page": 1
},
"id": 0
}'
The Mpl-Core feature has expanded the range of options available for the interface field, introducing two new variants: MplCoreCollection and MplCoreAsset. These additions enable the querying of corresponding assets.