概述
getAssetsByGroup 列出某个分组中的资产。实际上,这个分组就是合集:传入 groupKey: "collection",并将合集地址作为 groupValue。除非设置了 showUnverifiedCollections,否则只返回已验证的合集成员。
参数
string
必填
分组类型。请使用
collection。string
必填
合集地址(base-58)。
number
每页结果数。最大值和默认值均为 1,000。
string
来自上一次响应的游标。
string
返回 ID 在此 ID 之前的资产。
string
返回 ID 在此 ID 之后的资产。
object
{ "sortBy": "id" | "created" | "updated" | "recent_action" | "none", "sortDirection": "asc" | "desc" }object
显示选项:
showFungible、showUnverifiedCollections、showCollectionMetadata、showInscription。也可以作为 displayOptions 传入。响应
一个列表,包含last_indexed_slot、total、limit、page 或 cursor,以及 items(资产对象)。