prepare_native_stake_deactivate
Initiates one-epoch cooldown for a native stake account, stopping rewards and enabling withdrawal after the cooldown. Requires staker authority wallet and stake account address.
Instructions
Build an unsigned native-stake deactivate tx. Initiates the one-epoch (~2-3 days) cooldown after which the stake becomes withdrawable; the stake earns no rewards during deactivation. Wallet must be the stake account's staker authority. After the cooldown lapses, run prepare_native_stake_withdraw to drain the account (or partial-withdraw to leave it open). DURABLE NONCE REQUIRED + same Ledger blind-sign treatment as prepare_native_stake_delegate. The on-chain stake program reverts if the stake is already deactivating/inactive — the simulation gate catches it.
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": {
"wallet": "<wallet>",
"stakeAccount": "<stakeAccount>"
},
"name": "prepare_native_stake_deactivate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Solana wallet — must be the stake account's staker authority (the wallet that originally created the stake). | |
| stakeAccount | Yes | Base58 stake account address to deactivate. Discovery: call get_solana_staking_positions; the wallet's native stake accounts are listed under `native[].stakePubkey`. Deactivation takes one epoch (~2-3 days); the stake earns no rewards during the cooldown but stays non-withdrawable until it lapses. |