avnu Earn allows users to stake tokens directly through your application, earning rewards while maintaining full custody.Documentation Index
Fetch the complete documentation index at: https://docs.avnu.fi/llms.txt
Use this file to discover all available pages before exploring further.
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
Available Actions
Stake
Deposit tokens into the staking pool.
Unstake
Withdraw tokens from the staking pool.
Claim Rewards
Harvest earned staking rewards.
Get Info
Fetch user staking positions and pool stats.