Get floor price of a collection
Get floor price of NFT collections with graphQl APIs.
Getting NFT mintlist for a collection using DAS
let page = 1;
let assets = [];
while (page > 0) {
const assetsByGroup = await shyft.rpc.getAssetsByGroup({
groupKey: 'collection',
groupValue: collectionAdress,
page,
limit: 1000,
}); //getting NFTs for a collection in a paginated manner
assets.push(...assetsByGroup.items); //adding to an array
page = assetsByGroup.total !== 1000 ? -1 : page + 1;
}Get all listings from marketplace using graphQl
Getting the lowest price NFTs and the floor price
Last updated