Staking
Staking
Stake delegation, rewards, and credential management
Staking
Evolution SDK provides complete staking operations — register stake credentials, delegate to pools and DReps, withdraw rewards, and deregister. All operations support both key-based and script-controlled stake credentials.
Staking Lifecycle
- Register — Create a stake credential on-chain (requires a deposit)
- Delegate — Assign your stake to a pool and/or DRep
- Earn — Accumulate rewards each epoch
- Withdraw — Claim accumulated rewards
- Deregister — Remove credential and reclaim deposit (optional)
Quick Example
import { , } from "@evolution-sdk/evolution"
const = ({
: "preprod",
: { : "blockfrost", : "https://cardano-preprod.blockfrost.io/api/v0", : ..! },
: { : "seed", : ..!, : 0 }
})
declare const : .
declare const : any
// Register and delegate in one transaction
const = await
.()
.({ })
.({ , })
.()
const = await .()
await .()Conway Era Features
The Conway era introduced new delegation capabilities:
- Vote delegation — Delegate voting power to a DRep separately from stake
- Combined certificates — Register + delegate in a single certificate
- Script-controlled staking — Use Plutus scripts for stake operations