curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAssetsByGroup",
"params": {
"groupKey": "collection",
"groupValue": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w",
"limit": 100
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"total": 1,
"limit": 1,
"cursor": "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk",
"items": [
{
"interface": "ProgrammableNFT",
"id": "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk",
"content": {
"$schema": "https://schema.metaplex.com/nft1.0.json",
"json_uri": "https://madlads.s3.us-west-2.amazonaws.com/json/8420.json",
"files": [
{
"uri": "https://madlads.s3.us-west-2.amazonaws.com/images/8420.png",
"mime": "image/png",
"cdn_uri": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fmadlads.s3.us-west-2.amazonaws.com%2Fimages%2F8420.png"
}
],
"metadata": {
"name": "Mad Lads #8420",
"symbol": "MAD",
"json_name": "Mad Lads #8420",
"description": "Fock it.",
"attributes": [
{
"trait_type": "Gender",
"value": "Male"
},
{
"trait_type": "Type",
"value": "Light"
}
],
"token_standard": "ProgrammableNonFungible"
},
"links": {
"image": "https://madlads.s3.us-west-2.amazonaws.com/images/8420.png",
"external_url": "https://madlads.com"
},
"category": "image"
},
"authorities": [
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"scopes": [
"full"
]
}
],
"compression": {
"eligible": false,
"compressed": false,
"data_hash": "",
"creator_hash": "",
"asset_hash": "",
"tree": "",
"seq": 0,
"leaf_id": 0
},
"grouping": [
{
"group_key": "collection",
"group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"
}
],
"royalty": {
"royalty_model": "creators",
"target": null,
"percent": 0.042,
"basis_points": 420,
"primary_sale_happened": true,
"locked": false
},
"creators": [
{
"address": "5XvhfmRjwXkGp3jHGmaKpqeerNYjkuZZBYLVQYdeVcRv",
"share": 0,
"verified": true
},
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"share": 100,
"verified": true
}
],
"ownership": {
"frozen": true,
"delegated": false,
"delegate": null,
"ownership_model": "single",
"owner": "4zdNGgAtFsW1cQgHqkiWyRsxaAgxrSRRynnuunxzjxue"
},
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 254
},
"mutable": true,
"burnt": false,
"token_info": {
"supply": 1,
"decimals": 0,
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
}
],
"last_indexed_slot": 386120417
}
}DAS API
getAssetsByGroup DAS Method
List the assets in a collection or Core group, including compressed NFTs, with cursor or page pagination. getAssetsByGroup parameters and examples.
POST
/
curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAssetsByGroup",
"params": {
"groupKey": "collection",
"groupValue": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w",
"limit": 100
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"total": 1,
"limit": 1,
"cursor": "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk",
"items": [
{
"interface": "ProgrammableNFT",
"id": "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk",
"content": {
"$schema": "https://schema.metaplex.com/nft1.0.json",
"json_uri": "https://madlads.s3.us-west-2.amazonaws.com/json/8420.json",
"files": [
{
"uri": "https://madlads.s3.us-west-2.amazonaws.com/images/8420.png",
"mime": "image/png",
"cdn_uri": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fmadlads.s3.us-west-2.amazonaws.com%2Fimages%2F8420.png"
}
],
"metadata": {
"name": "Mad Lads #8420",
"symbol": "MAD",
"json_name": "Mad Lads #8420",
"description": "Fock it.",
"attributes": [
{
"trait_type": "Gender",
"value": "Male"
},
{
"trait_type": "Type",
"value": "Light"
}
],
"token_standard": "ProgrammableNonFungible"
},
"links": {
"image": "https://madlads.s3.us-west-2.amazonaws.com/images/8420.png",
"external_url": "https://madlads.com"
},
"category": "image"
},
"authorities": [
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"scopes": [
"full"
]
}
],
"compression": {
"eligible": false,
"compressed": false,
"data_hash": "",
"creator_hash": "",
"asset_hash": "",
"tree": "",
"seq": 0,
"leaf_id": 0
},
"grouping": [
{
"group_key": "collection",
"group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"
}
],
"royalty": {
"royalty_model": "creators",
"target": null,
"percent": 0.042,
"basis_points": 420,
"primary_sale_happened": true,
"locked": false
},
"creators": [
{
"address": "5XvhfmRjwXkGp3jHGmaKpqeerNYjkuZZBYLVQYdeVcRv",
"share": 0,
"verified": true
},
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"share": 100,
"verified": true
}
],
"ownership": {
"frozen": true,
"delegated": false,
"delegate": null,
"ownership_model": "single",
"owner": "4zdNGgAtFsW1cQgHqkiWyRsxaAgxrSRRynnuunxzjxue"
},
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 254
},
"mutable": true,
"burnt": false,
"token_info": {
"supply": 1,
"decimals": 0,
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
}
],
"last_indexed_slot": 386120417
}
}Returns account-based NFTs, Core assets and compressed NFTs in one list. Also accepted as
get_assets_by_group.
groupKeyiscollectionorgroup; any other key returns no items.- Only verified members are listed. Set
options.showUnverifiedCollectionsto include unverified ones. limitdefaults to 1000 and may not exceed 1000.totalis the number of items on the page.- With no
page,beforeorafter, the response carries acursor. Send it back ascursorfor the next page; stop whenitemsis empty. pageis 1-based.page,before/afterandcursorcannot be combined.- Default sort is
iddescending.created,updatedandrecent_actionsort by slot, needpagepagination, and accept up to 50,000 matching assets. - One request examines at most 200,000 candidate assets. For deep pages in large collections, page by
cursorrather than highpagenumbers. - Costs 1 credit and counts against your plan’s DAS RPS limit.
Body
application/json
Was this page helpful?