Solana: Withdraw Using the Earn Widget

This Withdraw Staking Flow flow lets users move SOL from a Ready to withdraw stake account back into their original wallet address.

Withdrawing is always step two in the Solana sequence: Stake → Unstake → Withdraw, and is typically fast or near-instant.

Step-by-step flow

  1. Open Withdraw
    The user returns to the widget after their previously unstaked account has finished deactivating.

    • The widget shows an account with status Ready to withdraw and an active Withdraw CTA.
  2. Select account to withdraw from (if multiple eligible accounts)
    The user selects one account from the list of Ready to withdraw accounts.

    • The current implementation assumes full-withdraw per account (no partial withdraw of a ready account).
  3. Review validator and summary

    Summary displays:

    • APY.

    • Account.

    • Fees.

  4. Submit withdraw transaction
    The user clicks Withdraw.

    • The widget triggers the withdraw transaction in the user’s wallet.
    • The user reviews and approves the transaction, paying the network fee.
  5. Transaction processing
    The widget shows a brief processing or pending state while the network finalizes the transaction.

  6. Post-withdraw state
    The stake account is effectively emptied (and no longer shown as ready to withdraw).

    The main widget view updates to show:

    • Increased wallet Available balance.
    • Reduced or removed amount in “Unstaking / Ready to withdraw” sections.

    The user can now:

    • Restake using the Stake flow, or
    • Use or swap funds as usual directly from their Solana wallet.