A comprehensive Solana trading and token launch platform powered by Telegram. Trade with automated DCA strategies, launch tokens with bonding curves, and manage your portfolio - all from Telegram. Currently running on Solana Devnet for safe testing and development.
- Automatic Wallet Creation: Each user gets a secure Solana wallet on first interaction
- Encrypted Storage: Private keys encrypted with AES-256-GCM
- Balance Tracking: View SOL and all SPL token balances
- Token Transfers: Send any SPL token to any Solana address
- Devnet Airdrop: Request test SOL for devnet testing
- Automated Trading: Set up recurring buys at fixed intervals
- Flexible Intervals: Hourly, Daily, Weekly, or Monthly execution
- Multiple Strategies: Run multiple DCA strategies simultaneously
- Real-time Analytics: Track performance, average buy price, and ROI
- Strategy Management: Pause, resume, or cancel strategies anytime
- Execution History: View complete transaction history with explorer links
- Token Creation: Launch custom SPL tokens on Solana Devnet
- Raydium Pool Creation: Automatic liquidity pool creation using Raydium SDK
- Bonding Curve Integration: Fair launch mechanism with automatic liquidity
- Metadata Support: Add token name, symbol, description, and logo
- Instant Deployment: Deploy tokens in seconds via Telegram
- Pump.fun Alternative: Similar to pump.fun but through Telegram on devnet
- Quick Swaps: Swap any SPL token for another
- Raydium DEX Integration: Powered by Raydium SDK v2 for reliable devnet trading
- Liquidity Pool Management: Direct interaction with Raydium liquidity pools
- Slippage Control: Customizable slippage tolerance
- Price Impact Warnings: Real-time price impact calculations
- Portfolio Overview: View all token holdings and current values
- Price Tracking: Real-time price updates for any token
- Performance Analytics: Track gains/losses across all positions
- Transaction History: Complete audit trail of all trades
- Popular Token Lists: Quick access to trending tokens
- Recent Activity: View your latest transactions
- Favorites: Save frequently traded tokens
- Custom Watchlists: Track specific tokens
BlowUpBot is built as a Turborepo monorepo with multiple services working together:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Frontend (Next.js) โ
โ Marketing & Documentation โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Telegram Bot Service โ
โ โข User interactions & commands โ
โ โข Session management โ
โ โข Real-time responses โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโผโโโโโโโ โโโโโโผโโโโโโ โโโโโโโผโโโโโโโ
โ Scheduler โ โ Database โ โ Relayer โ
โ Service โ โ(Postgres)โ โ Service โ
โ โ โ โ โ โ
โ โข DCA Exec โ โ โข Prisma โ โ โข On-chain โ
โ โข Cron Jobs โ โ โข Users โ โ Pools โ
โ โข Background โ โ โข DCA โ โ โข Token โ
โ Tasks โ โ โข Tokens โ โ Creation โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ Shared Packages โ
โ โ
โ โข @repo/database (Prisma) โ
โ โข @repo/services (Solana) โ
โ โข @repo/config-typescript โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ Solana Blockchain (Devnet) โ
โ โข SPL Token Program โ
โ โข Raydium DEX & SDK v2 โ
โ โข Liquidity Pools โ
โ โข Custom Programs โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Built with Telegraf (Telegram Bot Framework)
- Handles all user interactions and commands
- Manages wallet operations and transactions
- Executes swaps and trades via Raydium SDK v2
- Coordinates with other services for complex operations
- Executes DCA strategies at scheduled intervals via Raydium DEX
- Background job processing
- Automatic retry logic for failed trades
- Monitors strategy health and execution status
- Manages Raydium liquidity pool creation for token launches
- Handles bonding curve operations using Raydium SDK
- Creates and initializes token pools on devnet
- Transaction batching and optimization
- Next.js 16 with App Router
- Tailwind CSS for styling
- Marketing website and documentation
- Real-time bot integration demos
packages/database
- Prisma ORM setup
- Database migrations and schemas
- Typed database operations
- User, DCA, Token, and Execution models
packages/services
- Solana Web3.js utilities
- Token operations (swap, transfer, create)
- Raydium SDK v2 integration for all DEX operations
- Liquidity pool interactions
- Encryption/decryption utilities
- Portfolio and price tracking
- TypeScript - Type-safe development
- Node.js 18+ - Runtime environment
- Telegraf - Telegram Bot framework
- Prisma - Type-safe database ORM
- PostgreSQL - Primary database
- Solana Web3.js - Blockchain interactions
- @solana/spl-token - SPL Token operations
- Raydium SDK v2 - DEX operations, swaps, and liquidity pool management
- Devnet Environment - Safe testing and development environment
- Next.js 16 - React framework with App Router
- TypeScript - Type safety
- Tailwind CSS 4 - Utility-first styling
- Lucide React - Icon library
- Turborepo - Monorepo build system
- Docker - Containerization
- Docker Compose - Multi-container orchestration
- pnpm - Fast package manager
Before setting up BlowUpBot, ensure you have:
- Node.js 18 or higher
- pnpm 10.10.0 or higher
- Docker and Docker Compose (for containerized deployment)
- PostgreSQL 15+ (or use Docker)
- Telegram Bot Token (from @BotFather)
- Solana RPC URL (Devnet/Mainnet)
git clone https://github.com/jassBawa/BlowUpBot.git
cd BlowUpBot# Install pnpm if you haven't
npm install -g pnpm
# Install all dependencies
pnpm installCreate .env files in the following locations:
# Telegram Bot
BOT_TOKEN=your_telegram_bot_token
# Solana Configuration
SOLANA_RPC_URL=https://api.devnet.solana.com
SOLANA_CLUSTER=devnet
PROGRAM_ID=your_custom_program_id
# Security
ENCRYPTION_KEY=your_32_byte_encryption_key
# Relayer (for token launches)
RELAYER_PRIVATE_KEY=your_relayer_wallet_private_key
RPC_URL=https://api.devnet.solana.comDATABASE_URL="postgresql://postgres:postgres@localhost:5432/telegram_bot"BOT_TOKEN=your_telegram_bot_token
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/telegram_bot"
ENCRYPTION_KEY=your_32_byte_encryption_key
SOLANA_RPC_URL=https://api.devnet.solana.com
SOLANA_CLUSTER=devnet
PROGRAM_ID=your_custom_program_idDATABASE_URL="postgresql://postgres:postgres@localhost:5432/telegram_bot"
SOLANA_RPC_URL=https://api.devnet.solana.com
SOLANA_CLUSTER=devnet
PROGRAM_ID=your_custom_program_id
ENCRYPTION_KEY=your_32_byte_encryption_key# Generate Prisma Client
pnpm run generate
# Run database migrations
pnpm run db:migrate:dev
# Seed the database with initial data (optional)
pnpm run db:seed# Build all packages and apps
pnpm run build# Start all services in watch mode
pnpm run devThis will start:
- Bot service on auto-reload
- Scheduler service
- Frontend on http://localhost:3000
# Start all services with Docker
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose downDocker Compose will start:
- PostgreSQL database
- Database migrations
- Bot service
- Scheduler service
- Off-chain relayer service
- Open Telegram and search for your bot
- Send
/startcommand - You should receive a welcome message with your wallet address
- Test basic commands like
/balanceor/about
BlowUpBot/
โโโ apps/
โ โโโ bot/ # Telegram bot service
โ โ โโโ commands/ # Bot command handlers
โ โ โ โโโ dca/ # DCA-related commands
โ โ โ โโโ start.ts # Start & main menu
โ โ โ โโโ wallet.*.ts # Wallet commands
โ โ โ โโโ swap.ts # Token swap commands
โ โ โ โโโ token.ts # Token creation
โ โ โ โโโ portfolio.ts # Portfolio tracking
โ โ โโโ bot/ # Bot initialization
โ โ โโโ utils/ # Utility functions
โ โ โโโ index.ts # Entry point
โ โ
โ โโโ fe/ # Next.js frontend
โ โ โโโ src/
โ โ โ โโโ app/ # App router pages
โ โ โ โโโ components/ # React components
โ โ โ โโโ lib/ # Utilities
โ โ โโโ public/ # Static assets
โ โ
โ โโโ scheduler/ # DCA execution service
โ โ โโโ src/
โ โ โโโ executor.ts # DCA execution logic
โ โ โโโ index.ts # Cron scheduler
โ โ
โ โโโ off-chain-relayer/ # Token pool relayer
โ โโโ src/
โ โโโ handlers/ # Pool creation handlers
โ
โโโ packages/
โ โโโ database/ # Prisma ORM package
โ โ โโโ prisma/
โ โ โ โโโ schema.prisma # Database schema
โ โ โ โโโ migrations/ # Migration files
โ โ โโโ src/
โ โ โโโ client.ts # Prisma client
โ โ โโโ user/ # User operations
โ โ โโโ dca/ # DCA operations
โ โ โโโ tokenPair/ # Token pair operations
โ โ
โ โโโ services/ # Shared Solana services
โ โโโ src/
โ โโโ solana.ts # Wallet & transaction utils
โ โโโ token.ts # Token operations
โ โโโ swap.ts # Swap logic
โ โโโ price.ts # Price fetching
โ โโโ portfolio.ts # Portfolio tracking
โ โโโ encryption.ts # Key encryption
โ
โโโ docker-compose.yml # Multi-service orchestration
โโโ turbo.json # Turborepo configuration
โโโ pnpm-workspace.yaml # pnpm workspace config
โโโ package.json # Root package.json
pnpm run dev # Start all services in development
pnpm run build # Build all apps and packages
pnpm run lint # Lint all packages
pnpm run format # Format code with Prettier
pnpm run generate # Generate Prisma client
pnpm run db:migrate:dev # Run database migrations
pnpm run db:seed # Seed database# Bot service
cd apps/bot
pnpm run dev # Start bot in watch mode
pnpm run build # Build bot
pnpm run start # Start production bot
# Frontend
cd apps/fe
pnpm run dev # Start Next.js dev server
pnpm run build # Build for production
pnpm run start # Start production server
# Scheduler
cd apps/scheduler
pnpm run dev # Start scheduler in watch mode
pnpm run build # Build scheduler
pnpm run start # Start production scheduler# Start all services
docker-compose up -d
# View logs
docker-compose logs -f [service_name]
# Restart a service
docker-compose restart [service_name]
# Stop all services
docker-compose down
# Rebuild and start
docker-compose up -d --build
# Remove volumes (careful!)
docker-compose down -v/start- Initialize bot and create wallet/balance- Check wallet balance/wallet_send <token> <address> <amount>- Send tokens/portfolio- View complete portfolio
/dca- Set up new DCA strategy/dca_listor/dcas- List all strategies/dca_stats- View DCA performance statistics/dca_history- View execution history
/swap- Swap tokens via Raydium DEX/quick- Quick access to popular devnet tokens/price <token>- Check token price
/token- Access token launchpad- Create custom SPL tokens with metadata
/about- Bot information/help- Show help message
- Encrypted Private Keys: All user private keys encrypted with AES-256-GCM
- Secure Key Derivation: Using PBKDF2 with salt
- Non-custodial: Users have full control of their wallets
- Environment Variables: Sensitive data in environment variables
- Input Validation: All user inputs validated and sanitized
- Rate Limiting: Built-in protection against spam/abuse
- Devnet: Currently operating on Solana Devnet for safe testing and development
- Risk-Free Testing: Use devnet SOL (no real money) to test all features
- Future Mainnet Support: Architecture is designed to support mainnet deployment
Note: All trading, DCA strategies, and token launches currently happen on Solana Devnet. Request devnet SOL via the /airdrop command or from Solana Faucet.
Key models:
- TelegramUser: User profiles with encrypted wallet keys
- DcaStrategy: Automated trading strategies
- DcaExecution: Trade execution history
- TokenPair: Supported trading pairs with metadata
See packages/database/prisma/schema.prisma for complete schema.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub: https://github.com/jassBawa/BlowUpBot
- Telegram Bot: @BlowUpBot
- Website: Coming soon
Built with โค๏ธ by:
- @jassBawa - Jaspreet Bawa
- @Vivekk-11 - Vivek
For support, questions, or feedback:
- Open an issue on GitHub
- Contact via Telegram: @BlowUpBot
- Mainnet deployment
- Multi-wallet support
- Portfolio rebalancing automation
- Social trading features
- Advanced order types (limit orders, stop-loss)
- NFT trading support