TriportRPC

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). 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

getAssetsByGroup return value
FieldType
resultobject

Examples

curl https://triport.io/sol \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <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", Authorization: "Bearer <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={"Authorization": "Bearer <api-key>"},
    json={"id":1,"method":"getAssetsByGroup","params":[],"jsonrpc":"2.0"},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet.
  3. 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.