Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

getAssetsByGroup

Returns the digital assets in a group such as a collection, by groupKey and groupValue, with sorting and pagination.

Request

curl "https://<your-endpoint>.mainnet.rpcpool.com/<your-token>" -s -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "123",
    "method": "getAssetsByGroup",
    "params": {
        "groupKey": "collection",
        "groupValue": "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac",
        "page": 1,
        "limit": 50
    }
}'

Parameters

Name
Description
Required

groupKey

The key of the group (e.g., "collection").

Yes

groupValue

The value of the group, such as the collection address.

Yes

sortBy

Sorting criteria, as an object { sortBy: <value>, sortDirection: <value> }. sortBy is one of "id" (the default), "created", "updated", "recent_action", or "none". sortDirection is "asc" (the default) or "desc". Sorting by anything other than "id" requires page.

No

limit

The maximum number of assets to retrieve, up to 1000 (the default).

No

page

The index of the "page" to retrieve, starting at 1.

No

before

Fetch assets before the given ID.

No

after

Fetch assets after the given ID.

No

options

Display options, as an object of flags that default to false: showFungible, showCollectionMetadata, showUnverifiedCollections, showZeroBalance, showInscription. Also accepted as displayOptions.

No

cursor

Fetch the next page with the cursor value from the previous response.

No

Send parameters as a named object, or as an array in the order listed, with null for any you skip. Use one way to paginate per request: page, cursor, or before and after. cursor, before, and after need sorting by id.


Adapted from the Metaplex getAssetsByGroup reference, maintained by the Metaplex Foundation.


Contact support by clicking the chat icon in your customer dashboard Sales questions? Contact us AI agent? Read llms.txt Follow updates: Blog · X · YouTube · Telegram · GitHub

Last updated