Skip to content

Staking

The StakingSDK manages a universal public staking contract designed for the entire Algorand ecosystem, not just Akita Protocol. Users stake once and benefit across multiple reward platforms rather than fragmenting positions across competing systems.

Four staking types serve different use cases:

TypeBehaviorLockTransfer
HeartbeatTracks balances without transfers — useful for rewards based on existing holdingsNoneNo
SoftFlexible staking with no lock periodNoneYes
HardEscrow-based staking for stronger commitmentNoneYes (to escrow)
LockEscrow-based with a defined lockup period — used for governance participation and premium reward tiersFixed durationYes (to escrow)
import { StakingSDK } from '@akta/sdk/staking'
const staking = new StakingSDK({ algorand })
// Read global state
const state = await staking.getGlobalState()
// Stake tokens, withdraw, and claim rewards
// are performed through the wallet plugin system

Staking operations are typically executed through the ARC-58 wallet’s plugin system. The StakingPlugin is installed on the wallet and invoked via wallet.usePlugin().

For dual-token governance staking (equal portions of AKTA and BONES with time decay), use the DualStakePlugin. See Wallet Plugins for details.