Toolbox

Unwrap SOL

Last updated April 20, 2026

Summary

The mplx toolbox sol unwrap command unwraps the entire wSOL balance by closing the associated token account, returning the SOL to the owner.

  • Closes the wSOL associated token account and returns all SOL to the identity.
  • Takes no arguments and no flags.
  • All-or-nothing — partial unwrapping is not supported.
  • Fails if no wSOL token account exists for the current wallet.

Quick Reference

The table below summarizes the command's shape and key constants.

ItemValue
Commandmplx toolbox sol unwrap
ArgumentsNone
FlagsNone
Native mintSo11111111111111111111111111111111111111112
Inversetoolbox sol wrap

Basic Usage

Run the command with no arguments to unwrap the full wSOL balance of the current wallet.

mplx toolbox sol unwrap

Examples

The command has a single invocation form.

mplx toolbox sol unwrap

Output

On success the command prints the unwrapped amount, the closed token account, and the transaction signature.

--------------------------------
Unwrapped <amount> SOL
Token Account Closed: <associated_token_account>
Signature: <transaction_signature>
Explorer: <explorer_url>
--------------------------------

Notes

  • Unwrap is all-or-nothing — the entire wSOL balance is converted back to SOL and the token account is closed.
  • Fails if no wSOL token account exists for the current wallet.
  • Wrap with toolbox sol wrap.
Previous
Wrap