prepare_native_stake_deactivate
Initiates the one-epoch deactivation cooldown for a native Solana stake account. The stake must be active and the wallet must be the staker authority; after cooldown, use prepare_native_stake_withdraw to withdraw.
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.
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. |