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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"walletAddress": "<walletAddress>",
"secretKey": "<secretKey>",
"stakeAccountAddress": "<stakeAccountAddress>"
},
"name": "unstake"
}
}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 |