A modern Solana wallet adapter application built with Next.js that enables seamless wallet connectivity and network switching for Solana-based applications.
- Multi-Wallet Support: Connect with popular Solana wallets (Phantom, Solflare, Backpack, etc.)
- Network Switching: Easy toggle between Devnet, Testnet, and Mainnet
- Real-time Connection: Instant wallet connection status updates
- Secure Integration: Built-in security best practices for wallet interactions
- Create Token: Generate new SPL tokens with custom metadata
- Mint Tokens: Mint additional supply to existing tokens
- Token Management: View and manage your created tokens
- Send SOL: Transfer SOL between wallets with custom amounts
- Sign Messages: Cryptographically sign custom messages
- Transaction History: View recent transaction activity
- Airdrop Wallet: Request SOL airdrops on Devnet/Testnet for development
- Balance Checker: Real-time SOL and token balance display
- Modern UI: Clean and responsive interface built with Next.js
Check out the live application: https://wallet-adapter-wine.vercel.app/
- Framework: Next.js 14 (App Router)
- Blockchain: Solana Web3.js
- Wallet Integration: Solana Wallet Adapter
- Token Standard: SPL Token Program
- Styling: Tailwind CSS / CSS Modules
- Font: Geist (Vercel's font family)
- Deployment: Vercel
-
Clone the repository
git clone https://github.com/Nikuunj/wallet-adapter.git cd wallet-adapter
-
Install dependencies
npm install # or yarn install # or pnpm install # or bun install
-
Run the development server
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open your browser Navigate to http://localhost:3000 to see the application.
The application supports multiple Solana networks. You can switch between:
- Devnet (Development)
- Testnet (Testing)
- Mainnet (Production)
Network switching is available directly in the UI with a simple click.
- Connect Wallet: Click "Select Wallet" to choose your preferred Solana wallet
- Switch Networks: Use the network selector to change between Devnet, Testnet, and Mainnet
- View Connection Status: Monitor your wallet connection status in real-time
-
Create Token:
- Navigate to the "Create Token" section
- Enter token name, symbol, and decimals
- Set initial supply and upload metadata
- Click "Create Token" to deploy on Solana
-
Mint Tokens:
- Select an existing token from your list
- Enter the amount to mint
- Specify recipient address (optional)
- Confirm transaction to mint new tokens
-
Send SOL:
- Click on "Send SOL" feature
- Enter recipient's wallet address
- Specify amount to send
- Review and confirm transaction
-
Sign Message:
- Navigate to "Sign Message" section
- Enter custom message text
- Click "Sign" to create cryptographic signature
- Copy signed message for verification
- Airdrop SOL (Devnet/Testnet only):
- Ensure you're connected to Devnet or Testnet
- Click "Request Airdrop"
- Receive 1-2 SOL for testing purposes
- Note: Mainnet airdrops are not available
- Start Development Server: The main application logic is in
app/page.tsx
- Hot Reloading: The page auto-updates as you edit files
- Component Testing: Test individual features using the component interfaces
- Network Testing: Switch between networks to test different environments
- Devnet/Testnet: Use for development and testing
- Mainnet: Only use for production deployments
- Airdrop Limits: Devnet/Testnet airdrops are rate-limited
- Transaction Fees: All operations require SOL for transaction fees
The easiest way to deploy this Next.js app is using the Vercel Platform.
- Push your code to GitHub
- Connect your repository to Vercel
- Vercel will automatically build and deploy your application
For other deployment options, check the Next.js deployment documentation.
To learn more about the technologies used in this project:
- Next.js Documentation - Learn about Next.js features and API
- Solana Wallet Adapter - Official Solana wallet adapter
- Solana Web3.js - Solana JavaScript API
- SPL Token Program - Solana Program Library for tokens
- Solana Cookbook - Comprehensive Solana development guide
- Learn Next.js - Interactive Next.js tutorial
Create a .env
file in your root directory:
API_Key=
API_Secret=
PINATA_JWT=
NEXT_PUBLIC_GATEWAY_UR=
- Node.js 18+ installed
- A Solana wallet (Phantom, Solflare, etc.)
- Basic understanding of blockchain concepts
- SOL tokens for transaction fees (get from faucet for testing)
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is open source and available under the MIT License.
Nikuunj
- GitHub: @Nikuunj
- Solana Labs for the wallet adapter library
- Vercel for the deployment platform
- Next.js for the amazing React framework
⭐ If you found this project helpful, please give it a star on GitHub!