WalletConnect Setup Guide
Get Your WalletConnect Project ID
- Go to: https://cloud.walletconnect.com
- Sign in or create an account
- Create a new project (or use existing)
- Copy your Project ID
- Add it to
packages/dapp/.env.local:
env
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id_hereWhy You Need This
WalletConnect Project ID is required for:
- MetaMask connection
- WalletConnect protocol
- RainbowKit wallet connections
Free Tier
WalletConnect offers a free tier with:
- Up to 1M requests/month
- Sufficient for development and testing
After Adding Project ID
- Save
.env.localfile - Restart the dev server:bash
# Stop current server (Ctrl+C) npm run dapp:dev - Try connecting wallet again
Troubleshooting
Error: "Invalid project ID"
- Make sure Project ID is correct (no extra spaces)
- Verify it's from https://cloud.walletconnect.com
- Restart dev server after adding
Error: "Failed to connect"
- Check browser console for errors
- Make sure MetaMask or other wallet is installed
- Try a different wallet