Earn is our native staking solution for Starknet tokens, starting with STRK and expanding to other assets like BTC variants. Users can delegate their tokens to earn network rewards.
Features
Native Staking
Stake tokens directly to the Starknet staking protocol via avnu’s infrastructure.
Reward Management
Claim rewards or restake them to compound earnings.
Flexible Unstaking
Initiate withdrawals and claim funds after the 7-day unbonding period.
SDK Methods
Data Fetching
getUserStakingInfo(tokenAddress, userAddress)- Fetch user’s staking positiongetAvnuStakingInfo(tokenAddress)- Fetch protocol-wide staking stats
Simple Integration
executeStake(params)- Stake tokens with automatic approvalsexecuteInitiateUnstake(params)- Start 7-day unbonding periodexecuteUnstake(params)- Claim unstaked tokens after unbondingexecuteClaimRewards(params)- Claim or restake rewards
Advanced Integration
stakeToCalls(poolAddress, amount)- Build staking calls for custom executioninitiateUnstakeToCalls(poolAddress, amount)- Build unstaking initiation callsunstakeToCalls(poolAddress)- Build unstaking claim callsclaimRewardsToCalls(poolAddress, restake)- Build reward claim calls