getAssetsByGroup
Solana / https://triport.io/sol
Minimum tier: Basic
Last updated:
Request, response, errors and plan for this call on the Triport Solana endpoint: getAssetsByGroup API reference →
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). 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://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'x-token: <api-key>' \
-d '{"id":1,"method":"getAssetsByGroup","params":[],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", "x-token": "<api-key>" },
body: JSON.stringify({
"id": 1,
"method": "getAssetsByGroup",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"x-token": "<api-key>"},
json={"id":1,"method":"getAssetsByGroup","params":[],"jsonrpc":"2.0"},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: Solana.
- Clusters: mainnet.
- Billing: included in the flat monthly plan, no per-call credits.