SOL Wrapper Documentation

Introduction

SOL Wrapper is a simple tool that allows you to wrap your SOL tokens into wSOL (Wrapped SOL) and unwrap them back to SOL. This is useful for interacting with DeFi protocols on Solana that require SPL tokens.

Wrapped SOL (wSOL) is the SPL token version of native SOL. It follows the SPL token standard, making it compatible with all applications that work with SPL tokens on Solana.

Why Wrap SOL?

Native SOL is the blockchain's currency used for transaction fees and staking. However, many DeFi applications on Solana require tokens to follow the SPL token standard for compatibility with their protocols.

By wrapping SOL into wSOL, you can:

  • Use your SOL in DeFi applications that only accept SPL tokens
  • Trade SOL on decentralized exchanges that use token pairs
  • Provide liquidity to pools that require SPL tokens
  • Interact with smart contracts that expect SPL token interfaces

You can always unwrap your wSOL back to native SOL when needed.

How to Use SOL Wrapper

Wrapping SOL to wSOL

  1. Connect your Solana wallet by clicking the "Connect Wallet" button
  2. Ensure you have SOL in your wallet
  3. Enter the amount of SOL you want to wrap, or use the "HALF" or "MAX" buttons
  4. Click the "Wrap SOL" button
  5. Approve the transaction in your wallet
  6. Wait for the transaction to be confirmed

Unwrapping wSOL to SOL

  1. Connect your Solana wallet by clicking the "Connect Wallet" button
  2. Click "Switch to Unwrap" to change to unwrap mode
  3. Enter the amount of wSOL you want to unwrap, or use the "HALF" or "MAX" buttons
  4. Click the "Unwrap wSOL" button
  5. Approve the transaction in your wallet
  6. Wait for the transaction to be confirmed

Technical Details

SOL Wrapper interacts with the Solana blockchain using the following libraries:

  • @solana/web3.js - Core Solana blockchain interaction
  • @solana/spl-token - SPL token program interaction
  • @solana/wallet-adapter - Wallet connection and transaction signing

When wrapping SOL, the application:

  1. Creates an associated token account for wSOL if it doesn't exist
  2. Transfers SOL to the token account
  3. Syncs the native account to update the token balance

When unwrapping wSOL, the application:

  1. Closes the token account
  2. Returns the SOL to your wallet

Frequently Asked Questions

Are there any fees for wrapping/unwrapping SOL?

There are no fees charged by SOL Wrapper itself. However, you will need to pay the standard Solana network transaction fees, which are typically a fraction of a SOL.

Is wSOL the same value as SOL?

Yes, wSOL is always valued 1:1 with SOL. When you wrap SOL, you get the exact same amount in wSOL, and vice versa when unwrapping.

Why do I need to leave some SOL when wrapping?

You need to keep a small amount of SOL in your wallet to pay for transaction fees. The "MAX" button automatically reserves 0.01 SOL for this purpose.

Can I send wSOL to another wallet?

Yes, wSOL is an SPL token that can be sent to any Solana wallet address. The receiving wallet must have an associated token account for wSOL.

What wallets are supported?

SOL Wrapper supports popular Solana wallets including Phantom, Solflare, and other wallets compatible with the Solana wallet adapter.

Get Help

If you encounter any issues or have questions, you can:

  • Report a bug using the bug report button at the bottom right of the page
  • Request a new feature using the feature request button
  • Visit our GitHub repository for more information