Unstake SOL (one-shot)
unstakeDeactivate a stake account in a single call. Builds the transaction, signs it, and submits it. The stake enters a cooldown period (~1 epoch) and becomes withdrawable at the next epoch boundary. Use check_withdraw_ready to poll readiness, then withdraw to reclaim SOL. This is the recommended tool — use create_unstake_transaction only if you manage your own signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secretKey | Yes | Your base58-encoded secret key — used in-memory for signing only, never stored | |
| walletAddress | Yes | Your Solana wallet address (stake authority) | |
| stakeAccountAddress | Yes | Stake account address to deactivate |