> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Unwrap Lamports

> Convert wrapped SOL back into lamports, fully or partially, without closing the token account.

## 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

| Item                      | Description                         | Source                                                                                                         |
| ------------------------- | ----------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `UnwrapLamports`          | The instruction (discriminator 45). | [Source](https://github.com/solana-program/token/blob/main/pinocchio/interface/src/instruction.rs)             |
| `process_unwrap_lamports` | Processor logic.                    | [Source](https://github.com/solana-program/token/blob/main/pinocchio/program/src/processor/unwrap_lamports.rs) |

## 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).      |

<Warning>

The source must be a native token account; other token accounts return
`NonNativeNotSupported`. A delegate can unwrap up to its delegated amount.

</Warning>

## 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`](/developers/docs/clients/official/javascript#solana-kit) client — see
[Transfer Tokens](/developers/docs/tokens/basics/transfer-tokens) for client setup.

```ts title="Unwrap wrapped SOL (Kit)"
import { getUnwrapLamportsInstruction } from "@solana-program/token";

// source: the native (wrapped SOL) token account to unwrap.
// destination: address that receives the unwrapped lamports.
// authority: a TransactionSigner (the account owner or a delegate).

// Unwrap a specific number of lamports.
const unwrapSome = getUnwrapLamportsInstruction({
  source,
  destination,
  authority,
  amount: 500_000_000n
});

// Or omit `amount` to unwrap the entire balance.
const unwrapAll = getUnwrapLamportsInstruction({
  source,
  destination,
  authority
});

// Send whichever instruction you need.
await client.sendTransaction([unwrapSome]);
```

For a multisig authority, pass the co-signers with `multiSigners`.
