What Does Unwrap Lamports Do?
UnwrapLamports moves SOL out of a native (wrapped SOL) token account into
a destination account as lamports. You can unwrap the full balance or a specific
amount, and the token account stays open.
This is more flexible than closing a wrapped SOL account: a partial unwrap lets
you withdraw some SOL while keeping the account funded for later use.
Source Reference
Accounts
| Account | Description |
|---|---|
source | Writable. The native (wrapped SOL) token account to unwrap. |
destination | Writable. Receives the unwrapped lamports. |
authority | The account owner or a delegate (or multisig signers). |
The source must be a native token account; other token accounts return
NonNativeNotSupported. A delegate can unwrap up to its delegated amount.How to Unwrap Lamports
Omitamount to unwrap the full balance, or set it to unwrap a specific
number of lamports. The example uses a configured
@solana/kit client — see
Transfer Tokens for client setup.
Unwrap wrapped SOL (Kit)
multiSigners.