Stakable assets
Retrieve the assets eligible for staking.
Parameter
Attribute | Description |
---|---|
stakeCollectionId | Your collection Id given by anvil |
utxos | Array of utxos |
Usage example
import { anvil } from "@ada-anvil/sdk-server";
try {
await anvil.staking.getStakableAssets({
stakeCollectionId: YOUR_COLLECTION_ID,
utxos: ["THE_UTXO"],
});
} catch {
console.log("YOUR ERROR HANDLING");
}
Return informations
Attribute | Description |
---|---|
id | Unique internal asset identifier |
available | Indicates whether the asset is available for staking |
unit | The unit for the asset |
policyId | The policy ID associated with the asset |
assetName | The name of the asset |
rarity | Rarity classification provided by CNFT Tools |
metadata | Metadata that varies depending on the collection |