Once a collectible has been created in ORB, there are multiple ways and Queries to use in order to fetch information about it.
Fetch all collectibles under a specific collection
If you are looking to retrieve all the collectibles that have been created in a specific collection, together with information about them, you can use the following Query.
Copy query GetCollectionTokens ($collectionId: String ! ) {
GetCollectionTokens(collectionId: $collectionId) {
tokenId
metadata
maxEditions
name
offers
owners
totalBurned
totalMinted
totalSupply
}
}
Copy "collectionId" : "KT1SjwraTtii88ZaEs8ReU6wkUreTvM8qfaa"
Below is an explanation of the response fields.
Use the following Query to retrieve information about a specified collectible.
Copy query GetTokenInfo ($collectionId: String ! , $tokenId: String ! ) {
GetTokenInfo(collectionId: $collectionId, tokenId: $tokenId) {
balancesCount
holdersCount
maxEditions
metadata
standard
tokenId
orbInfusedAmount
totalBurned
totalMinted
totalSupply
}
}
Copy "collectionId" : "KT1SjwraTtii88ZaEs8ReU6wkUreTvM8qfaa" ,
"tokenId" : "0"
Copy {
"data" : {
"GetTokenInfo" : {
"balancesCount" : 2 ,
"holdersCount" : 2 ,
"maxEditions" : 10 ,
"metadata" : {
"name" : "Honeyheart" ,
"image" : "http://test.com/img/SmileyBear1.png" ,
"displayUri" : "http://test.com/img/SmileyBear1.png" ,
"artifactUri" : "http://test.com/img/SmileyBear1.png" ,
"description" : "Part of the Smiley Bears game." ,
"thumbnailUri" : "http://test.com/img/SmileyBear1.png"
} ,
"standard" : "fa2" ,
"tokenId" : "0" ,
"orbInfusedAmount" : "5" ,
"totalBurned" : 1 ,
"totalMinted" : 6 ,
"totalSupply" : 5
}
}
}
Below is an explanation of the response fields.