A modern, premium blockchain-based UPI payment system built on Arbitrum with PYUSD. Experience instant crypto payments with a sleek, Apple Pay-inspired interface.
- 🔐 Secure Authentication - Email/password authentication via Supabase
- 💼 Auto Wallet Creation - Automatic EVM wallet generation on signup with encrypted private key storage
- 🏷️ Unique Payment Handles - User-defined handles (e.g.,
yourname@pyusd) for easy payments - ⚡ Instant Transfers - Send PYUSD via handles or QR codes on Arbitrum
- 📱 QR Code Support - Generate and scan QR codes for quick payments
- 📊 Transaction History - View all past transactions with blockchain explorer links
- 🎨 Premium UI/UX - Smooth, minimal interface with Framer Motion animations
- 🌙 Dark Mode - Beautiful dark theme support
- Frontend: React 18 + TypeScript + Vite
- Styling: TailwindCSS 3.4 + Framer Motion
- Blockchain: ethers.js 6.x + Arbitrum
- Database: Supabase (PostgreSQL with RLS)
- Routing: React Router v6
- Encryption: crypto-js (AES-256)
- Node.js 18+ and npm
- Supabase account and project
- Arbitrum RPC endpoint (use public RPC or your own)
- PYUSD contract address on Arbitrum
git clone https://github.com/coderhormaz/ETHOnline_2025.git
cd ETHOnline_2025npm install- Create a new Supabase project at supabase.com
- Run the SQL schema from
supabase_schema.sqlin the Supabase SQL Editor - This will create all necessary tables and RLS policies
Copy .env.example to .env and fill in your values:
# Supabase Configuration
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
VITE_SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
# Generate a strong 32-character encryption key
VITE_ENCRYPTION_SECRET_KEY=your_32_character_encryption_key
# Arbitrum Network
VITE_ARBITRUM_RPC_URL=https://arb1.arbitrum.io/rpc
VITE_ARBITRUM_CHAIN_ID=42161
# PYUSD Contract (update with actual contract address)
VITE_PYUSD_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000- Keep your
VITE_ENCRYPTION_SECRET_KEYsecure and never commit it - Use the Supabase Service Role Key (not anon key) for
VITE_SUPABASE_SERVICE_ROLE_KEY
npm run devVisit http://localhost:5173 to see the app!
- Sign Up: Create an account with email, password, and your unique handle
- Auto Wallet: A secure wallet is automatically created and encrypted
- Receive Handle: Get your unique payment handle (e.g.,
hormaz@pyusd)
- Click Send on the dashboard
- Enter recipient's handle (e.g.,
friend@pyusd) - Enter amount in PYUSD
- Confirm and send!
- Click Receive on the dashboard
- Share your QR code or payment handle
- Receive instant PYUSD payments!
src/
├── components/ # Reusable UI components
│ ├── BalanceCard.tsx
│ ├── SendModal.tsx
│ ├── LoadingStates.tsx
│ ├── Toast.tsx
│ └── ProtectedRoute.tsx
├── contexts/ # React Context providers
│ ├── AuthContext.tsx
│ └── WalletContext.tsx
├── lib/ # Core utilities
│ ├── supabase.ts
│ ├── crypto.ts
│ ├── animations.ts
│ └── blockchain/
│ ├── provider.ts
│ └── pyusd.ts
├── pages/ # Application pages
│ ├── Login.tsx
│ ├── Signup.tsx
│ ├── Dashboard.tsx
│ ├── Transactions.tsx
│ └── Receive.tsx
├── services/ # Business logic
│ ├── wallet.ts
│ ├── handle.ts
│ ├── transfer.ts
│ └── transactions.ts
└── App.tsx # Main app component
- AES-256 Encryption - Private keys encrypted before storage
- Row Level Security - Supabase RLS policies protect user data
- Client-Side Safety - Private keys never exposed to client
- Server-Side Signing - All transactions signed securely
- Input Validation - Comprehensive validation on all forms
npm run buildnpm i -g vercel
vercelMake sure to add all environment variables in your deployment platform!
The app uses 3 main tables:
- wallets - Stores encrypted private keys and public addresses
- handles - Unique payment handles for each user
- transactions - Payment history and transaction records
See supabase_schema.sql for complete schema with indexes and RLS policies.
Edit tailwind.config.js to customize the color scheme:
colors: {
primary: { ... },
accent: { ... },
}Modify animation presets in src/lib/animations.ts
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this project for your own purposes!
- Built for ETHOnline 2025
- Powered by Arbitrum & PYUSD
- UI inspired by Apple Pay & Paytm
For issues or questions, please open an issue on GitHub.
Built with ❤️ by hormaz