Staking Flow
Before interacting with the API methods, it is useful to understand how native staking works on Sui.
Sui staking follows an object-based model. A wallet stakes SUI into a validator staking pool and receives stake-related on-chain objects. Unstaking is performed using the specific StakedSui object identifier.
All staking operations are executed on-chain. The Stakely Staking API crafts the required transactions, while signing and broadcasting are handled by your application.
Staking user journey
A high-level view of what happens to your funds and the wait times involved. Each box is a state of your position; the arrows are the actions (and the time) that move between them.
Staking parameters
Key parameters for planning a Sui integration:
| Parameter | Value |
|---|---|
| Staking type | Native |
| Networks | Mainnet, Testnet |
| API minimum | 1 SUI |
| Stake activation | Next epoch (~24h) |
| Unbonding / lock when exiting | Instant (no unbonding period) |
| Rewards model | Accrues to the staked position |
Sui has no unbonding or cooldown period. Unstaking a StakedSui object returns your principal plus accrued rewards to your wallet in the same transaction, as soon as it confirms. The only waiting period on Sui is on the way in: a new stake starts earning from the next epoch (~24h).
Stake
Staking delegates a specified amount of SUI to a validator.
- Initiate Stake: Use the stake action to create a transaction that stakes a chosen amount to a validator.
- Transaction Confirmation: Once the transaction is confirmed on-chain, your
StakedSuiobject is created. The stake begins earning rewards from the start of the next epoch (about 24h). - Stake Objects: The wallet can then query staked positions and balances.
Unstake
Unstaking withdraws stake from an existing StakedSui object. It is instant: there is no unbonding period or cooldown.
- Select Staked Object: Identify the
staked_sui_object_idto unstake. - Initiate Unstake: Use the unstake action to craft an unstake transaction.
- Transaction Confirmation: Once confirmed on-chain, the
StakedSuiobject is consumed and your principal plus accrued rewards land back in your wallet immediately. No withdraw action or waiting period follows.