prepare_marinade_unstake_immediate
Build an unsigned transaction to burn mSOL and receive SOL instantly through Marinade's liquidity pool, paying a small fee. Requires durable nonce and Ledger blind-sign.
Instructions
Build an unsigned Marinade IMMEDIATE liquid-unstake tx: burn amountMSol mSOL and receive SOL in the same tx via Marinade's liquidity pool (NOT delayed-unstake / OrderUnstake — that flow returns full SOL after one epoch but requires an ephemeral ticket-account signer the Ledger-only signing model can't provide; tracked as a follow-up). The pool charges a small fee (typically 0.3% — varies with pool depth) in exchange for instant liquidity. DURABLE NONCE REQUIRED + same Ledger signing constraints as prepare_marinade_stake. BLIND-SIGN on Ledger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Solana wallet that burns mSOL and receives SOL. Must have an initialized durable-nonce account and an mSOL position to unstake from. Liquid unstake routes through Marinade's liquidity pool (NOT delayed-unstake / OrderUnstake) so the user pays a small fee but receives SOL in the same tx — no one-epoch wait. | |
| amountMSol | Yes | Human-readable mSOL amount to unstake (e.g. "1.5"). Builder converts to mSOL base units (9 dec) and rounds down. |