Skip to content

​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

ItemDescriptionSource
UnwrapLamportsThe instruction (discriminator 45).Source
process_unwrap_lamportsProcessor logic.Source

​Accounts

AccountDescription
sourceWritable. The native (wrapped SOL) token account to unwrap.
destinationWritable. Receives the unwrapped lamports.
authorityThe 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

Omit amount 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)
For a multisig authority, pass the co-signers with multiSigners.