Skip to main content

Daily estimation

Obtain a reward estimate using the provided array of assets.

Parameter

AttributeDescription
stakeCollectionIdYour collection Id given by anvil
assetsThe array of assets for estimation

Usage example

import { anvil } from "@ada-anvil/sdk-server";

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.

AttributeDescription
totalArray of rewards grouped by unit
breakdownBreakdown of rewards generated for each unit
mintArray of minted assets resulting from the stake