The SOL Wrapper is a cutting-edge application designed for seamless conversion between native SOL and wrapped SOL (wSOL) on the Solana blockchain. This guide explores its features, technologies, setup process, and best practices for using this essential DeFi tool.
๐ Key Features of SOL Wrapper
SOL Wrapper stands out with these powerful capabilities:
- Instant Token Conversion: One-click wrapping/unwrapping between SOL and wSOL
- Live Balance Tracking: Real-time updates of both SOL and wSOL holdings
- Blockchain Integration: Displays current Solana block height
- Transaction Alerts: Visual notifications for transaction status
- Funds Verification: Built-in checks for sufficient balances
- Cross-Device Compatibility: Optimized for desktop and mobile use
- User Support System: Integrated Sentry for feedback collection
- Detailed Guides: Comprehensive documentation covering all features
๐ ๏ธ Technical Architecture
Built with modern web technologies:
- Frontend: Next.js 15 with TypeScript
- Styling: Tailwind CSS framework
- Blockchain: Solana Web3.js and SPL Token libraries
- Wallet Integration: Solana Wallet Adapter
- Monitoring: Sentry for error tracking
- UI Elements: Lucide React icons
๐ System Requirements
Before installation, ensure you have:
- Node.js v18+ installed
- npm or yarn package manager
- Solana-compatible wallet (Phantom/Solflare)
- Basic understanding of Solana transactions
๐ Installation Guide
Step-by-Step Setup
git clone https://github.com/0xjkrdev/sol-wrapper.git
cd sol-wrapper
npm installConfigure environment variables in .env.local:
NEXT_PUBLIC_SOLANA_RPC_URL=https://solana-rpc.publicnode.com
SENTRY_DSN=your_sentry_dsn_hereLaunch development server:
npm run devAccess the application at http://localhost:3000
Production Deployment
Build the application:
npm run buildStart production server:
npm run start
๐ Explore advanced deployment options for enterprise solutions.
๐ก User Guide
Wrapping SOL to wSOL
- Connect wallet via "Connect Wallet" button
- Enter desired SOL amount
- Click "Wrap SOL"
- Approve transaction in wallet
- Monitor confirmation status
Unwrapping wSOL to SOL
- Switch to unwrap mode
- Input wSOL amount
- Click "Unwrap wSOL"
- Approve transaction
- Wait for confirmation
๐๏ธ Project Architecture
Key directories:
sol-wrapper/
โโโ app/ # Next.js core
โ โโโ components/ # UI components
โ โโโ docs/ # Documentation
โ โโโ swap/ # Core wrapper logic
โโโ public/ # Static assets
โโโ config/ # Environment settings๐ง Configuration Options
RPC Endpoints
Recommended providers:
- PublicNode (free)
- QuickNode (premium)
- Alchemy (enterprise)
๐ Compare RPC performance metrics for optimal selection.
โ Frequently Asked Questions
What's the difference between SOL and wSOL?
SOL is native currency while wSOL is an SPL token version needed for certain DeFi protocols.
Are there fees for wrapping/unwrapping?
Only standard Solana network transaction fees apply.
Is my wallet balance updated automatically?
Yes, the app refreshes balances after each transaction.
Can I use this on mobile?
Absolutely! The responsive design works on all devices.
How secure is this wrapper?
It uses official Solana libraries and doesn't hold user funds.
๐ License Information
MIT Licensed - Free for commercial and personal use.
๐ค Contribution Guidelines
- Fork repository
- Create feature branch
- Submit PR with detailed description
๐ฌ Contact Details
Developer: 0xjkrdev
Project Repository: github.com/0xjkrdev/sol-wrapper