Kiwi Wallet
Non-Custodial Multi-Chain Wallet
Overview
A browser-based, non-custodial multi-chain cryptocurrency wallet supporting Ethereum and Solana. Create and manage accounts from a single recovery phrase, switch between mainnet and testnets, send and receive assets, and review transaction history — all in a clean, modern interface.
Kiwi Wallet is a fully client-side, non-custodial wallet for Ethereum and Solana built as a single-page React application. Users generate a 12-word recovery phrase, derive accounts using standard BIP-44 HD paths, and manage assets across multiple networks — all without a backend. Private keys remain in session state only and are never persisted.
Key Features
Multi-Chain HD Wallet
Derive Ethereum (m/44'/60') and Solana (m/44'/501') accounts from one 12-word BIP-39 seed phrase
Network Switching
Toggle between Ethereum Mainnet, Sepolia, Polygon, Arbitrum, Optimism, Base, and Solana Mainnet/Devnet
Transaction Management
Send ETH and SOL with guided transfer modal, receive via QR code, track on-chain activity history
Devnet Airdrop
Request test SOL (0.5-2.5 SOL) directly from Solana Devnet faucet within dashboard
Session-Only Keys
Private keys stay in React state only — no localStorage, no backend, fully client-side security model
Real-Time Balance
Live balance polling every 10 seconds with USD value estimates and show/hide privacy toggle
Technology Stack
Challenges
Building a secure wallet with client-only architecture and no key persistence
Unifying Ethereum and Solana account management from a single seed phrase
Handling network switching across 6+ EVM networks plus Solana Mainnet/Devnet
Ensuring safe key display and preventing accidental exposure or leakage
Polling balances efficiently without overwhelming RPC endpoints
Solutions
Implemented BIP-39 mnemonic generation with Ethers.js and ed25519-hd-key for dual-chain HD derivation
Built network-aware balance polling hook with 10-second interval and chain-specific RPC routing
Designed confirmation-gated key viewer with explicit user consent before display
Used React Router for SPA navigation with Vercel SPA rewrites for client-side routing
Created Radix UI-based accessible primitives for dialogs, dropdowns, and toasts with Framer Motion animations
Project Architecture
// Project Structure
kiwi/ ├── public/ │ ├── kiwi-icon.svg │ └── LogoWallets/ # Chain and network icons ├── src/ │ ├── components/ │ │ ├── ui/ # Radix primitives (button, dialog, tabs, toast) │ │ ├── landing/ │ │ │ ├── Globe.tsx # Animated globe for landing │ │ │ └── graphics.tsx # GridFloor and decorative SVG │ │ ├── scripts/ │ │ │ ├── ether.ts # Ethereum HD derivation (Ethers.js) │ │ │ ├── solana.ts # Solana HD derivation + mnemonic │ │ │ ├── balance.ts # ETH and SOL balance fetching │ │ │ ├── sendEth.ts # Ethereum transfer │ │ │ ├── sendSol.ts # Solana transfer │ │ │ └── airdropSol.ts # Solana Devnet airdrop │ │ ├── Landing.tsx # Landing page │ │ ├── Dashboard.tsx # Main wallet dashboard │ │ ├── SetupWallet.tsx # Wallet creation flow │ │ ├── NetworkSelector.tsx # Network switching dropdown │ │ ├── ActivityList.tsx # Transaction history │ │ ├── AirdropPanel.tsx # Devnet SOL airdrop panel │ │ ├── SendCrypto.tsx # Send transaction modal │ │ ├── ReceiveCrypto.tsx # Receive address + QR │ │ ├── ShowKeys.tsx # Key viewer dialog │ │ ├── AccountPicker.tsx # Account switcher │ │ └── brand.tsx # TopBar, HatchStrip, KiwiMark │ ├── hooks/ │ │ ├── useWalletBalance.ts # Balance polling hook │ │ └── useNotifications.ts # Notification queue │ ├── lib/ │ │ └── utils.ts # cn() class-name helper │ ├── App.tsx # Router and routes │ ├── main.tsx # Entry point │ └── index.css # Tailwind directives ├── vercel.json # SPA rewrites + security headers └── vite.config.ts
Key Learnings
BIP-39 mnemonic and BIP-44 HD wallet derivation for Ethereum and Solana
Ethers.js v6 and @solana/web3.js for blockchain interaction and transaction signing
Client-side security patterns for non-custodial wallet applications
Multi-chain RPC management and network configuration strategies
Accessible UI design with Radix primitives and Tailwind styling
Session-only state management for sensitive cryptographic material
Future Enhancements
Import wallet from existing seed phrase, token and NFT support, persistent encrypted key storage with user password, hardware wallet integration, transaction simulation, and additional EVM networks.
