- Solana wallet (Phantom app)
- SOL tokens to fund rewards
- 5 minutes of time
- Open Phantom wallet app
- Click your wallet name/icon
- Click "Copy address"
- Save it somewhere
You now have: REWARD_WALLET_ADDRESS
- Phantom → Settings → Wallet Settings
- Click "Export Private Key"
- Enter your password
- Copy the key
You now have: REWARD_WALLET_PRIVATE_KEY
In your project root, create/edit .env.local:
MONGODB_URI=mongodb+srv://username:password@cluster...
NODE_ENV=development
# SOL Rewards Configuration
REWARD_WALLET_ADDRESS=your_wallet_address_here
REWARD_WALLET_PRIVATE_KEY=your_private_key_here
SOLANA_RPC_URL=https://api.devnet.solana.comTo send real rewards, you need SOL in the wallet:
For Testing (Free):
- Use Solana devnet
- Get free SOL: https://faucet.solana.com
- Use
https://api.devnet.solana.comin SOLANA_RPC_URL
For Production (Real SOL):
- Buy SOL from exchange (Coinbase, FTX, etc.)
- Send to your
REWARD_WALLET_ADDRESS - Use
https://api.mainnet-beta.solana.comin SOLANA_RPC_URL
npm run devUsers can now:
- Report issues
- Get verified automatically
- Earn SOL tokens instantly!
| Variable | What It Is | Where to Get It |
|---|---|---|
MONGODB_URI |
Database connection | MongoDB Atlas |
REWARD_WALLET_ADDRESS |
Your Solana wallet | Phantom app → Copy address |
REWARD_WALLET_PRIVATE_KEY |
Your secret key | Phantom app → Export key |
SOLANA_RPC_URL |
Blockchain endpoint | https://api.devnet.solana.com |
MONGODB_URI=mongodb+srv://test:password@test.mongodb.net/urlmonitor
NODE_ENV=development
REWARD_WALLET_ADDRESS=4cP9fzMckHE9csbY5oSYSBeHJeWHwyPb72kf7EHbHeAJ
REWARD_WALLET_PRIVATE_KEY=your_devnet_private_key
SOLANA_RPC_URL=https://api.devnet.solana.comMONGODB_URI=mongodb+srv://prod:password@prod.mongodb.net/urlmonitor
NODE_ENV=production
REWARD_WALLET_ADDRESS=your_mainnet_wallet
REWARD_WALLET_PRIVATE_KEY=your_mainnet_private_key
SOLANA_RPC_URL=https://api.mainnet-beta.solana.comA: Yes! Use devnet and get free test SOL from the faucet.
A: You need to export it again from Phantom. There's no recovery.
A: Keep .env.local secret. Never commit to GitHub. Use .gitignore.
A: For testing: free devnet SOL. For production: depends on rewards (0.01 SOL per report).
A: For users: yes, each user can switch wallets. For rewards: you need one app wallet.
Check:
- ✅
.env.localhas all 3 variables - ✅ Restarted app (
npm run dev) - ✅ Wallet is funded with SOL
- ✅ Private key is correct
- ✅ Using right RPC URL
- Don't include quotes around the key
- Don't include spaces
- Export directly from Phantom
- Make sure it's the full key
- Check wallet is funded
- Check transaction in Solana Explorer
- Verify recipient address is correct
- Check logs for errors
For more details:
- SETUP_GUIDE.md - Full setup checklist
- REWARDS_SETUP.md - Detailed reward setup
- README.md - Project overview
- DOCUMENTATION.md - All docs index
- Add environment variables
- Restart app
- Test reporting issues
- Earn SOL! 🎉
Questions? Check the docs above!
Made with ❤️ for the Solana ecosystem