-
Notifications
You must be signed in to change notification settings - Fork 18
3. Configuration
Steven edited this page Jun 7, 2025
·
1 revision
The bot requires environment variables set in a .env file for blockchain access, database, and Telegram integration.
# Solana RPC Configuration
RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_HELIUS_API_KEY
WSS_URL=wss://mainnet.helius-rpc.com/?api-key=YOUR_HELIUS_API_KEY
# Optional: Default Wallet Address to autosubscribe
WALLET_ADDRESS=YOUR_DEFAULT_SOLANA_WALLET_ADDRESS
# MongoDB Connection URI
MONGODB_URI=mongodb://localhost:27017/solana_wallet_tracking
# Telegram Bot Token from BotFather
TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN- Helius API Key: Register at Helius RPC and obtain your API key.
- Telegram Bot Token: Create a Telegram bot with BotFather and receive your token.
- Make sure MongoDB is running and accessible via the provided URI.
- Keep your API keys and tokens private and secure.
- You can track multiple wallets; either pre-configure in WALLET_ADDRESS or add via Telegram commands.