A modern, sleek React application for connecting to Ethereum wallets using wagmi and Viem. Built with Vite for fast development and optimal performance.
https://ethereum-wallet-adapter-indol.vercel.app
- Modern UI: Beautiful glassmorphism design with gradient accents
- Wallet Connection: Seamless integration with MetaMask and other injected wallets
- Address Display: Shows connected wallet address with elegant styling
- Fast & Lightweight: Built with Vite for lightning-fast development
- Type-Safe: Powered by wagmi and Viem for robust Web3 interactions
- Frontend: React 19
- Build Tool: Vite 7
- Web3: wagmi 3.x, Viem 2.x
- State Management: TanStack Query (React Query)
- Linting: ESLint with React Hooks plugin
- Node.js 18+
- A Web3 wallet (MetaMask, Coinbase Wallet, etc.)
# Clone the repository
git clone https://github.com/yuvrajnode/Ethereum-wallet-adapter-.git
# Navigate to project directory
cd Ethereum-wallet-adapter-/Eth-wallet-adapter
# Install dependencies
npm install
# Start development server
npm run dev- Open the application in your browser (default: http://localhost:5173)
- Click "Connect [Wallet Name]" to connect your Web3 wallet
- Your wallet address will be displayed once connected
- The Send ETH feature is coming soon!
| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run lint |
Run ESLint |
npm run preview |
Preview production build |
Eth-wallet-adapter/
├── src/
│ ├── App.jsx # Main application component
│ ├── App.css # Application styles
│ ├── config.js # wagmi configuration
│ ├── main.jsx # Application entry point
│ └── index.css # Global styles
├── package.json
├── vite.config.js
└── README.md
The application uses a modular architecture:
- config.js: Contains wagmi configuration for Ethereum mainnet
- App.jsx: Main component with wallet connection and address display
- WalletConnector: Handles wallet connection UI and logic
- MyAddress: Displays the connected wallet address
- EthSend: Placeholder for future ETH transfer functionality
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this project for personal or commercial purposes.