A PERFECT volume bot for Pump.fun tokens that uses the correct PumpSwapSDK and JITO bundles for accurate and efficient transaction processing.
This bot has been completely rewritten to fix all the critical issues found in the original implementation:
- ✅ Correct Pool Discovery: Uses proper
getPoolsWithBaseMintQuoteWSOL()to find actual pools - ✅ Real-time Price Calculation: Uses
getBuyTokenAmount()with actual pool reserves - ✅ Proper Slippage: Uses
calculateWithSlippageBuy()with basis points - ✅ Correct Constants: Uses proper Pump.fun addresses and discriminators
- ✅ JITO Bundle Integration: Uses
jito-tslibrary with proper bundle handling - ✅ IDL Integration: Uses proper Anchor IDL for type safety
- ✅ Accurate Swap Logic: Implements correct bonding curve mechanics
- Perfect PumpSwapSDK Integration: Uses the correct SDK implementation
- JITO Bundle Support: MEV protection and faster transaction processing
- Real-time Pool Data: Fetches actual pool reserves and prices
- Telegram Bot Control: Remote control via Telegram with real-time status
- Multi-Wallet Management: Efficient wallet distribution and collection
- Lookup Table Optimization: Uses Address Lookup Tables for efficiency
- Accurate Price Calculations: Proper bonding curve math implementation
- Slippage Protection: Configurable slippage with basis points
- Node.js (v18 or higher)
- A Solana RPC endpoint
- A Telegram bot token
- SOL for gas fees and trading
- Clone the repository:
git clone <repository-url>
cd Smart_Pumpfun_Volume_Bot- Install dependencies:
npm install
# or
yarn install- Create a
.envfile with your configuration:
RPC_URL=https://your-solana-rpc-endpoint.com
PRIVATE_KEY=your_base58_encoded_private_key
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
JITO_TIP_AMOUNT_LAMPORTS=1000000
BLOCK_ENGINE_URL=https://mainnet.block-engine.jito.wtf- Start the Telegram bot:
npm run bot-
Send
/startto your Telegram bot to begin -
Use the following commands:
/help- Show available commands/settings- Configure bot parameters/start_bot- Start volume operations/stop_bot- Stop volume operations/status- Check bot status
import { PerfectPumpfunVolumeBot } from './index';
const bot = new PerfectPumpfunVolumeBot('YOUR_TOKEN_ADDRESS');
await bot.getPumpData(); // Finds correct pool automatically
bot.createWallets(10);
bot.loadWallets();
await bot.createLUT();
await bot.distributeSOL();
await bot.swap(); // Uses correct PumpSwapSDKRPC_URL: Your Solana RPC endpointPRIVATE_KEY: Your wallet's private key (base58 encoded)TELEGRAM_BOT_TOKEN: Your Telegram bot tokenJITO_TIP_AMOUNT_LAMPORTS: JITO tip amount in lamports (default: 1000000)BLOCK_ENGINE_URL: JITO block engine URL
- Slippage: Configurable slippage tolerance (0.1% - 50%)
- SOL Amount: Amount of SOL to distribute to each wallet
- Sleep Time: Delay between swap cycles
- Wallet Count: Number of wallets to use for volume generation
- PerfectPumpfunVolumeBot: Main bot class with correct implementation
- PumpSwapSDK: Correct SDK implementation with proper pool discovery
- JITO Bundle Service: Manages JITO bundle transactions
- Pool Manager: Handles pool discovery and price calculations
- Telegram Controller: Handles Telegram bot interactions
- Pool Discovery: Automatically finds the correct Pump.fun pool using
getPoolsWithBaseMintQuoteWSOL() - Real-time Data: Fetches actual pool reserves and prices
- Wallet Setup: Creates and funds multiple wallets
- LUT Creation: Creates and extends Address Lookup Tables
- Volume Generation: Performs accurate buy/sell cycles using correct SDK
- SOL Collection: Collects remaining SOL back to main wallet
- Accurate Price Calculations: Uses real pool data instead of placeholders
- Proper Slippage Protection: Implements basis points slippage calculation
- Balance Validation: Ensures sufficient funds before operations
- Error Handling: Comprehensive error handling and recovery
- Transaction Simulation: Simulates transactions before execution
- Pool Validation: Validates pool existence and trading status
The bot provides real-time monitoring through:
- Console logs with detailed operation status
- Telegram notifications for important events
- Transaction signatures for tracking
- Real-time pool data and price information
- Balance updates and warnings
-
Pool Not Found
- Ensure the token is a valid Pump.fun token
- Check if the token has an active pool
-
Insufficient SOL Balance
- Ensure your main wallet has enough SOL for gas fees and trading
- Check the estimated cost in the bot logs
-
RPC Connection Issues
- Verify your RPC endpoint is working
- Consider using a premium RPC service for better reliability
-
Transaction Failures
- Check network congestion
- Verify token address is valid
- Ensure sufficient gas fees
The bot provides detailed logging for debugging:
- Operation status updates
- Pool discovery information
- Transaction signatures
- Error messages with context
- Real-time balance information
- ❌ Hardcoded pool index 0
- ❌ Placeholder virtual reserves
- ❌ Incorrect price calculation
- ❌ Wrong constants and addresses
- ❌ No proper pool discovery
- ✅ Dynamic pool discovery
- ✅ Real-time pool reserves
- ✅ Accurate price calculations
- ✅ Correct constants and addresses
- ✅ Proper PumpSwapSDK integration
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
MIT License - see LICENSE file for details
This bot is for educational purposes only. Trading cryptocurrencies involves risk. Use at your own discretion and never invest more than you can afford to lose.
For support and questions:
- Check the troubleshooting section
- Review the logs for error details
- Open an issue on GitHub
Note: This bot has been completely rewritten to fix all critical issues. Always test with small amounts first and ensure you understand the risks involved in automated trading.