Skip to content

3. Configuration

Steven edited this page Jun 7, 2025 · 1 revision

Configuration

The bot requires environment variables set in a .env file for blockchain access, database, and Telegram integration.

Required .env Variables

# 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

How to Get API Keys

  • 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.

Notes

  • 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.

Clone this wiki locally