A modern React-based Web3 adapter for Solana blockchain integration, featuring a clean UI built with Tailwind CSS and shadcn/ui components.
- 🔐 Secure wallet integration with Solana
- 💰 Real-time balance tracking
- 📤 Token transfer functionality
- ✍️ Message signing capabilities
- 🎨 Modern UI with Tailwind CSS and shadcn/ui
- 🌐 Devnet support with airdrop functionality
- Node.js 16.x or higher
- npm 7.x or higher
- Clone the repository:
git clone https://github.com/yourusername/web3-adapter.git
cd web3-adapter
- Install dependencies:
npm install
- Start the development server:
npm run dev
src/
├── components/ # Reusable UI components
│ ├── ui/ # shadcn/ui components
│ └── Background.jsx # Background component
├── lib/ # Utility functions and helpers
├── App.jsx # Main application component
├── Balance.jsx # Wallet balance component
├── RequestAirdrop.jsx # Airdrop request component
├── SendTokens.jsx # Token transfer component
└── SignMessage.jsx # Message signing component
- Supports multiple Solana wallet providers
- Secure connection management
- Automatic reconnection
- Real-time SOL balance updates
- Automatic refresh every 10 seconds
- Clear display in the UI
- Send SOL to any Solana address
- Input validation
- Transaction confirmation
- Sign messages using your Solana wallet
- Signature verification
- Support for text messages
- Request SOL tokens on devnet
- Simple amount input
- Quick transaction processing
- Frontend Framework: React 18
- Blockchain: Solana Web3.js
- Wallet Adapters: Solana Wallet Adapter
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Build Tool: Vite
- Development Environment: Node.js
This project follows these coding best practices:
-
Component Structure
- Small, focused components
- Single responsibility principle
- Clear separation of concerns
-
Code Organization
- Modular file structure
- Consistent naming conventions
- Logical grouping of related files
-
State Management
- Efficient use of React hooks
- Proper state isolation
- Controlled component patterns
-
Performance
- Optimized re-renders
- Proper dependency management
- Efficient blockchain interactions
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Vedant Anand
- GitHub: @VedantAnand17
- LinkedIn: Vedant Anand
- Twitter: @Vedantsx