getAssetsByGroup
Last updated:
`getAssetsByGroup` is a Digital Asset Standard (DAS) read method. Given a group key and value, it returns every asset assigned to that group. By far the most common use is enumerating an NFT collection: pass the group key `collection` and the collection's mint address to page through all assets that belong to it.
This is a **basic-tier method**. DAS methods (category `sol_das`) are not available on the free tier — calling them with a free-tier key returns a `tier_insufficient` error (see [Errors](#errors)). Upgrade to **basic** or higher to use it.
Because the result set for a popular collection can be large, the method is paginated. Request one page at a time and continue until a page returns fewer items than your requested `limit`.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://<your-endpoint>/ \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getAssetsByGroup","params":[]}'const res = await fetch("https://<your-endpoint>/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"id": 1,
"method": "getAssetsByGroup",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getAssetsByGroup","params":[],"jsonrpc":"2.0"})
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- Credit cost: 10 per call.
FAQ
- What does getAssetsByGroup do?
- Look up every Digital Asset Standard (DAS) asset that belongs to a group — most commonly all NFTs in a collection.
- How many credits does getAssetsByGroup cost?
- getAssetsByGroup costs 10 credit(s) per call on Triport by default.
- Is getAssetsByGroup available over WebSocket?
- getAssetsByGroup is an HTTP JSON-RPC method.