Withdraw SOL (one-shot)
withdrawWithdraw SOL from a deactivated stake account in a single call. Builds the transaction, signs it, and submits it. Funds are returned to your wallet. Use check_withdraw_ready first to confirm the account is ready. Omit amountSol to withdraw the full balance. This is the recommended tool — use withdraw_stake only if you manage your own signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountSol | No | Amount to withdraw in SOL (omit to withdraw full balance) | |
| secretKey | Yes | Your base58-encoded secret key — used in-memory for signing only, never stored | |
| walletAddress | Yes | Your Solana wallet address (withdraw authority) | |
| stakeAccountAddress | Yes | Deactivated stake account to withdraw from |