A modern payment platform built on the x402 protocol, enabling instant USDC payments on Base network with zero fees.
- Upload files, share links, or create documents
- Set custom USDC prices
- Instant payment settlement
- No accounts or signups required
- Personal payment pages (x402.me/username)
- Accept USDC payments with one link
- Custom amounts and QR codes
- Perfect for creators and freelancers
- Frontend: Next.js 15, React 19, TypeScript
- Styling: Tailwind CSS (Coinbase-inspired design)
- Payments: x402 Protocol on Base network
- Wallet: RainbowKit + WalletConnect (300+ wallets)
- Database: Convex (optional)
- Node.js 18+
- CDP account (cdp.coinbase.com)
- WalletConnect ID (cloud.walletconnect.com)
- Clone the repository
git clone https://github.com/sculptdotfun/x402-platform.git
cd x402-platform- Install dependencies
npm install- Configure environment
Create
.env.local:
# Your wallet address (receives payments)
NEXT_PUBLIC_RECEIVING_ADDRESS=0x...
# WalletConnect Project ID
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=...
# CDP API Keys (required for mainnet)
CDP_API_KEY_ID=...
CDP_API_KEY_SECRET=...
# Convex (optional)
NEXT_PUBLIC_CONVEX_URL=https://...convex.cloud- Run the development server
npm run dev- Connect Wallet: Users connect any wallet (MetaMask, Phantom, Coinbase, etc.)
- Create Content: Upload files or create payment profiles
- Set Price: Choose USDC amount
- Share Link: Send your x402 link
- Get Paid: Instant USDC settlement to your wallet
- Zero Platform Fees: Keep 100% of payments
- Instant Settlement: No waiting for payouts
- No Signups: Wallet-based authentication
- AI Compatible: Agents can pay programmatically
- 300+ Wallets: Universal wallet support
├── app/
│ ├── x402-link/ # Paywall platform
│ ├── x402-me/ # Payment profiles
│ └── api/ # x402 payment endpoints
├── components/ # Reusable UI components
├── lib/ # Utilities and hooks
├── middleware.ts # x402 payment middleware
└── convex/ # Database schema (optional)
- Build the project:
npm run build - Set environment variables on your host
- Deploy the
.nextfolder
- Never commit
.env.local - Use separate wallets for receiving payments
- Keep CDP API keys secure
- Monitor transactions regularly
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
Built with ❤️ using x402 protocol