Staking Flow
Before interacting with the API methods, it is useful to understand how native staking works on Monad.
Monad staking follows an EVM-compatible delegation model. A delegator assigns tokens to a validator, who participates in block production and network consensus. By delegating tokens, you help secure the network and earn staking rewards.
All staking operations are executed on-chain. The Stakely Staking API crafts the required transactions, while signing and broadcasting are handled by your application.
Delegate
Delegation assigns a specified amount of tokens to a validator.
- Initiate Delegation: Use the delegate action to create a transaction that delegates a chosen amount to a validator.
- Transaction Confirmation: Once the transaction is confirmed on-chain, the delegated amount becomes part of your active stake.
- Reward Accrual: Rewards begin to accumulate based on validator performance and protocol rules.
Undelegate
Undelegation starts the process of removing tokens from an active stake position.
- Initiate Undelegation: Use the undelegate action to signal the removal of a specified amount from your delegated stake.
- Withdrawal Slot Assignment: The undelegated amount is placed into a withdrawal slot.
- Withdrawal Epoch: Tokens remain locked until the protocol-defined withdrawal epoch is reached.
Withdraw
Once an undelegated amount becomes available after the withdrawal epoch, it must be withdrawn.
- Check Withdrawal Availability: Verify that the withdrawal slot is ready.
- Withdraw Funds: Use the withdraw action to transfer the available amount back to your wallet.
- Post-Withdrawal: Withdrawn tokens can be transferred, redelegated, or used in other on-chain operations.
Claim rewards
Staking rewards can be claimed independently of delegation and undelegation actions.
- Check Accumulated Rewards: Retrieve current reward information for the delegator address.
- Claim Rewards: Use the claim rewards action to transfer accumulated rewards to your wallet.
Compound rewards
Rewards can also be reinvested directly into the active stake position.
- Compound Rewards: Use the compound action to automatically add accumulated rewards back into your delegated stake.
- Increased Stake: The compounded amount increases your active delegation and continues earning rewards.