跳转到主要内容
POST
传入的每个筛选条件都必须匹配。也可使用 search_assets 调用。
  • 请包含 ownerAddress、grouping、creatorAddress、authorityAddress 或 supplyMint 之一。否则搜索会遍历所有资产,并且往往在检查 200,000 个候选资产后因 “too many assets” 错误而失败。
  • grouping 是包含两项的数组,例如 ["collection", "<address>"]。
  • tokenType(fungible、nonFungible、regularNft、compressedNft、all)需要 ownerAddress,且不能与 ownerType 或 interface 组合使用。
  • name 是链上名称中区分大小写的子串,需要 ownerAddress。
  • 未设置 ownerType 或 tokenType 时,同质化代币不会返回。使用 tokenType: "fungible" 或 "all",或 ownerType: "token" 来包含它们。
  • 不支持:conditionType: "any" 和 negate: true 会返回错误。royaltyTarget 和 agentToken 会被接受但不匹配任何资产,compressible: true、creators 以外的 royaltyTargetType,以及 V1_PRINT、V2_NFT、LEGACY_NFT、Identity 和 Executable 接口也是如此。
  • 未知参数会以 invalid params 错误被拒绝。
  • 分页、排序和 limit(默认值和最大值均为 1000)与 getAssetsByGroup 相同:默认使用 cursor,也可使用 page 或 before/after。id 以外的排序需要 page。
  • 消耗 1 积分,并计入套餐的 DAS RPS 限制。
请求配置和错误处理见 RPC 快速入门。计费见积分与限制。 全部 DAS 方法见 DAS API 概览。

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
必填

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
必填

The name of the RPC method to invoke.

可用选项:
searchAssets
示例:

"searchAssets"

params
object
必填

Filters and pagination. Unknown keys are rejected.

响应

Successfully searched assets.

jsonrpc
enum<string>

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string

Identifier matching the request.

示例:

"1"

result
object

A page of matching assets.