Daily estimation
Obtain a reward estimate using the provided array of assets.
Parameter
Attribute | Description |
---|---|
stakeCollectionId | Your collection Id given by anvil |
assets | The array of assets for estimation |
Usage example
import { anvil } from "@ada-anvil/sdk-client";
try {
await anvil.staking.getDailyEstimation({
stakeCollectionId: YOUR_COLLECTION_ID,
assets: [{ unit: "THE_ASSET_UNIT", quantity: 1 }],
});
} catch {
console.log("YOUR ERROR HANDLING");
}
Return informations
Caution
The total sum of breakdowns may not match the total amount due to the presence of bonuses that are not tied to individual assets but rather depend on combinations or patterns.
Attribute | Description |
---|---|
total | Array of rewards grouped by unit |
breakdown | Breakdown of rewards generated for each unit |
mint | Array of minted assets resulting from the stake |