Ultra-fast Solana copy trading, Solana sniper bot, and MEV bot with customizable sell logic for maximum profit
Ready to take your trading to the next level?
If you use this repo, you get a battle-tested, ultra-fast Solana trading bot that you can fully customize for your own strategies.
Add your own logic, automate your trades, and maximize your profits with professional-grade speed and reliability.
Want even more?
Hire me for custom development!
- I can help you integrate advanced features, optimize your sell logic, or build a fully tailored trading solution for your needs.
- Get ultra-fast swap code, 0block confirm, off-chain signing, and expert support.
This repository contains two powerful implementations of Solana trading bots:
- gRPC-based monitoring for real-time transaction tracking
- Telegram bot integration for remote control and alerts
- Multi-platform support: PumpSwap, PumpFun, Raydium LaunchLab bonk.fun
- Copy trading and sniper functionality with customizable strategies
- Ultra-high performance with JITO shred stream processing
- Advanced MEV strategies for maximal extractable value capture
- Real-time transaction parsing and analysis
- PostgreSQL integration for trade logging and analytics
Both implementations provide:
- Copy Trading: Automatically replicate successful trades from other wallets
- Sniper Trading: Execute lightning-fast trades on new token launches
- MEV Bot Functionality: Capture maximal extractable value opportunities on Solana
- Customizable Sell Logic: Implement your own profit-taking strategies
- Multi-Platform Support: Works with PumpSwap, PumpFun, Raydium LaunchLab,bonk and more
Telegram: @hanshazee
- Off-chain signing for maximum speed
- Multiple swap methods: Solana, JITO, Nozomi, 0slot, Race
- Priority fee optimization for faster confirmations
- Retry logic with exponential backoff
- Copy Trading: Follow successful traders automatically
- Sniper Trading: Target new token launches with precision
- Custom Sell Logic: Implement your own profit-taking rules
- Multi-token Support: Trade across various Solana tokens
- Telegram Bot Integration: Control your bot from anywhere
- Real-time Alerts: Buy/sell notifications with PnL tracking
- Balance Monitoring: Automatic balance checks and alerts
- Status Dashboard: Live trading statistics and performance metrics
- Transaction Parsing: Detailed analysis of trade data
- Multi-Platform Support: PumpSwap, PumpFun, Raydium, bonk
- Error Handling: Robust error recovery and alerting
- Configurable Settings: Customizable parameters for your strategy
- For Node.js version: Node.js 18+ installed
- For Rust version: Rust 1.70+ installed
- Solana wallet with SOL balance
- Telegram bot token (optional but recommended)
- Navigate to the Node.js directory
cd "copy sniper bot(node) using gRPC"
- Install dependencies
npm install
- Configure environment variables
cp .env.example .env
Edit .env
with your settings:
# Solana Configuration
RPC_URL=https://api.mainnet-beta.solana.com
PRIVATE_KEY=your_private_key_here
WALLET=your_wallet_address
# Trading Settings
SWAP_METHOD=solana # Options: solana, jito, nozomi, 0slot, race
SLIPPAGE_BPS=50
MAX_RETRIES=3
RETRY_DELAY=1000
# Telegram Bot (Optional)
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
# Balance Limits
LIMIT_BALANCE=0.1
- Start the bot
npm start
- gRPC Transaction Monitoring: Real-time transaction tracking
- Telegram Integration: Full remote control via Telegram bot
- Multi-Platform Support: PumpSwap, PumpFun, Raydium, bonk fun
- Copy Trading: Automatically replicate successful trades
- Sniper Trading: Lightning-fast execution on new launches
- Custom Alert System: Buy/sell notifications with PnL tracking
- Navigate to the Rust directory
cd "sniper (Rust) using jito Shred stream"
- Install Rust dependencies
cargo build --release
- Set up PostgreSQL (required for trade logging)
# Install PostgreSQL and create database
# Update DB_URL in main.rs if needed
- Configure environment variables
# Create .env file with your settings
RPC_URL=https://api.mainnet-beta.solana.com
PRIVATE_KEY=your_private_key_here
WALLET=your_wallet_address
- Start the bot
cargo run --release
- JITO Shred Stream Processing: Ultra-high performance transaction monitoring
- Advanced MEV Strategies: Sophisticated maximal extractable value capture
- Real-time Transaction Parsing: Detailed analysis of all transactions
- PostgreSQL Integration: Comprehensive trade logging and analytics
- Multi-threaded Architecture: Optimal performance for high-frequency trading
- Advanced Error Handling: Robust recovery and monitoring
Feature | Node.js Version | Rust Version |
---|---|---|
Performance | Fast | Ultra-fast |
Memory Usage | Higher | Lower |
Setup Complexity | Easy | Moderate |
Telegram Integration | β Full | β None |
MEV Strategies | Basic | Advanced |
Database Integration | β None | β PostgreSQL |
Transaction Parsing | Basic | Advanced |
Multi-threading | Limited | Full |
Choose your preferred swap method for optimal performance:
Method | Speed | Cost | Use Case |
---|---|---|---|
solana |
Fast | Low | General trading |
jito |
Very Fast | Medium | High-priority trades |
nozomi |
Ultra Fast | High | Sniper trading |
0slot |
Fast | Low | Copy trading |
race |
Very Fast | Medium | Competitive trading |
Customize your Telegram notifications:
const alertSettings = {
buyAlerts: true, // Buy notifications
sellAlerts: true, // Sell notifications
insufficientFundsAlerts: true, // Low balance warnings
balanceAlerts: true, // Balance updates
errorAlerts: true // Error notifications
};
- Identify Successful Wallets: Find wallets with consistent profits
- Set Copy Parameters: Define amount scaling and timing
- Monitor Transactions: Track target wallet activity
- Execute Copies: Automatically replicate trades
- Token Launch Detection: Monitor new token launches
- Entry Timing: Execute trades at optimal moments
- Position Sizing: Calculate appropriate position sizes
- Exit Strategy: Implement custom sell logic
{
stopLoss: 0.05, // 5% stop loss
takeProfit: 0.15, // 15% take profit
maxHoldTime: 1800 // 30 minutes max hold
}
{
stopLoss: 0.10, // 10% stop loss
takeProfit: 0.50, // 50% take profit
trailingStop: 0.20, // 20% trailing stop
maxHoldTime: 3600 // 1 hour max hold
}
Both bots support multiple Solana trading platforms:
- PumpSwap: High-speed DEX trading
- PumpFun: Meme token trading
- Raydium LaunchLab /bonk.fun: Launchpad trading
- Raydium: General DEX trading
Advanced transaction analysis for detailed trade insights:
const parsedData = {
solChanges: 0.1, // SOL amount traded
tokenChanges: 1000000, // Token amount traded
isBuy: true, // Buy or sell transaction
user: "wallet_address", // Trader wallet
mint: "token_mint", // Token mint address
pool: "pool_address", // Trading pool
liquidity: 1000, // Pool liquidity
coinCreator: "creator" // Token creator
};
- Create a Telegram bot with @BotFather
- Add your bot token to
.env
- Start the bot and send
/start
/start
- Main control panel/status
- Bot status and balance/balance
- Check wallet balance/alerts
- Manage notifications/stats
- Trading statistics/help
- Show all commands
- One-click Start/Stop: Control bot with buttons
- Real-time Balance: Live wallet balance updates
- Alert Management: Toggle notification types
- Status Monitoring: Live trading statistics
- Minimum Balance Check: Prevents trading with insufficient funds
- Automatic Stop: Stops bot when balance is too low
- Balance Alerts: Notifications for balance changes
- Retry Logic: Automatic retry on failed transactions
- Error Alerts: Immediate notification of issues
- Graceful Degradation: Continues operation despite errors
- Private Key Protection: Secure key management
- Environment Variables: Sensitive data protection
- Transaction Validation: Verify all transactions before execution
- Trade Success Rate: Percentage of successful trades
- Average PnL: Mean profit/loss per trade
- Total Volume: Total trading volume
- Active Positions: Current open positions
- Buy Alerts: New position notifications
- Sell Alerts: Exit notifications with PnL
- Error Alerts: Issue notifications
- Balance Alerts: Fund level warnings
- Performance Optimizations: Faster execution
- New Features: Additional trading strategies
- Bug Fixes: Improved stability
- Security Updates: Enhanced protection
- Documentation: Comprehensive guides
- Community: Active user community
- Custom Development: Tailored solutions
- Ultra-fast Swap Code: Off-chain signing implementation
-
Use Node.js version if you want:
- Easy setup and configuration
- Telegram integration for remote control
- Quick deployment and testing
- Basic copy trading and sniper functionality
-
Use Rust version if you want:
- Maximum performance and speed
- Advanced MEV strategies
- Sophisticated transaction analysis
- Professional-grade trading infrastructure
- Start Small: Begin with small amounts to test strategies
- Monitor Performance: Track your bot's performance regularly
- Adjust Parameters: Fine-tune settings based on results
- Diversify Strategies: Use multiple trading approaches
- Set Stop Losses: Always use stop losses to limit losses
- Position Sizing: Don't risk more than you can afford to lose
- Monitor Markets: Stay informed about market conditions
- Regular Reviews: Periodically review and adjust strategies
For ultra-fast swap code using off-chain signing and custom sell logic optimization:
- Custom Development: Tailored solutions for your needs
- Sell Logic Optimization: Maximize your profit potential
- Ultra-fast Implementation: Off-chain signing for speed
- 24/7 Support: Round-the-clock assistance
- Telegram: @hanshazee
This project is licensed under the MIT License - see the LICENSE file for details.
Trading cryptocurrencies involves substantial risk of loss and is not suitable for every investor. The valuation of cryptocurrencies may fluctuate, and, as a result, you may lose more than your original investment. You should not invest money that you cannot afford to lose.
This bot is NOT for educational and research purposes. Use at your own risk. The developers are not responsible for any financial losses incurred through the use of this software without contact to me.
π Start your journey to profitable trading today!
Built with β€οΈ for the Solana community and Traders