Collection stats
Obtain fundamental statistics related to the stake collection.
Parameter
Attribute | Description |
---|---|
stakeCollectionId | Your collection Id given by anvil |
Usage example
import { anvil } from "@ada-anvil/sdk-client";
try {
await anvil.staking.getStakeCollectionStats({ stakeCollectionId: YOUR_COLLECTION_ID });
} catch {
console.log("YOUR ERROR HANDLING");
}
Return informations
Attribute | Description |
---|---|
total.stakedNfts | The total number of NFTs staked within this collection |
total.supply | The total supply of stakable NFTs |
breakdown | A breakdown of statistics categorized by collection policy |
breakdown[0].name | The name of the collection, if available |
breakdown[0].policyId | The unique policy ID associated with the collection |
breakdown[0].supply | The total number of stakable NFTs available in this collection |
breakdown[0].stakedNfts | The quantity of staked NFTs in this collection |