Skip to main content

Overview

getAssetsByGroup lists the assets in a group. In practice the group is a collection: pass groupKey: "collection" and the collection address as groupValue. Only verified collection members are returned unless you set showUnverifiedCollections.

Parameters

string
required
The group type. Use collection.
string
required
The collection address (base-58).
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: showFungible, showUnverifiedCollections, showCollectionMetadata, showInscription. Also accepted as displayOptions.

Response

A list with last_indexed_slot, total, limit, page or cursor, and items (asset objects).

Code Examples

Request

Response

The asset object is shortened. See Asset object for a full example.

TypeScript

Collect the holders of a collection:

Common Errors