Validators
Overview of validator types in Cardano smart contracts, including spend, mint, and stake validators.
Last updated
Was this helpful?
Overview of validator types in Cardano smart contracts, including spend, mint, and stake validators.
Last updated
Was this helpful?
Cardano smart contracts use validators to define the conditions under which certain operations can occur. The Anvil API supports the following validator types:
Spend validators control the conditions under which UTXOs can be spent, enabling a wide range of smart contract patterns:
Asset Locking: Define conditions for when locked assets can be accessed
Multi-signature Schemes: Require approval from multiple parties
Time-locked Funds: Allow access only after certain time conditions
Conditional Payments: Release funds when specific conditions are met
Mint validators regulate the creation and destruction of native tokens on Cardano:
NFT Collections: Regulate minting of unique assets
Token Issuance Policies: Define rules for creating fungible tokens
Token Burning: Control conditions for destroying tokens
Evolving NFTs: Enable assets that can change over time
Stake validators control access to staking rewards and stake credential operations:
DAO Treasury Management: Govern how stake rewards are withdrawn
Delegated Staking Pools: Define withdrawal permissions
Staking Reward Distribution: Automate reward sharing