Environment Variables
Required Variables
NEXT_PUBLIC_HELIUS_API_KEY
NEXT_PUBLIC_HELIUS_API_KEYDescription: Helius RPC API key for Solana blockchain access
Where to get it: https://helius.dev (free tier available)
Example:
NEXT_PUBLIC_HELIUS_API_KEY=abc123-def456-ghi789Used For:
Future Solana wallet tracking features
Currently optional, but recommended for full functionality
Optional Variables
NEXT_PUBLIC_POLYMARKET_API_URL
NEXT_PUBLIC_POLYMARKET_API_URLDescription: Polymarket Gamma API base URL
Default: https://gamma-api.polymarket.com
Example:
NEXT_PUBLIC_POLYMARKET_API_URL=https://gamma-api.polymarket.comWhen to change: If Polymarket changes their API endpoint
Example .env.local
.env.local# Helius RPC
NEXT_PUBLIC_HELIUS_API_KEY=your_helius_api_key_here
# Polymarket API (optional, uses default)
NEXT_PUBLIC_POLYMARKET_API_URL=https://gamma-api.polymarket.comSecurity Notes
NEXT_PUBLIC_prefix:Exposes variable to browser
Safe for public APIs (Helius key is public-facing)
Never commit
.env.local:Already in
.gitignoreUse
.env.examplefor templates
Production:
Set environment variables in Vercel/Railway dashboard
Never hardcode sensitive keys in code
Last updated