A high-performance Solana trading bot that executes seamless atomic transactions combining Pump.fun final purchases, automatic migration triggers, and PumpSwap first-buy operations. Built for traders who need reliable, fast execution when tokens transition from the Pump.fun bonding curve to decentralized AMM pools.
For inquiries, collaborations, or support, feel free to reach out:
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Pump.fun β β Migration β β PumpSwap β
β Final Buy βββββΆβ Trigger βββββΆβ First Buy β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β β β
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
Single Atomic Transaction
- https://solscan.io/tx/2JDAAvyPnxVKKrn9HTXH6yJVwANMQivFFFZqsiMkSBYAop7qsUXgg29SFP4NzjmbRBmhzV4hiPGapZuUnmnEFqMa
This bot solves a critical timing challenge in Solana token trading. When a token on Pump.fun reaches its bonding curve completion, there's a brief window where you need to:
- Execute the final buy on Pump.fun to complete the bonding curve
- Trigger the migration from Pump.fun to PumpSwap AMM
- Place the first buy on the newly created PumpSwap pool
All of this happens in a single atomic transaction - ensuring you don't miss opportunities due to network delays or manual execution errors.
- Atomic Transaction Execution: All operations bundled into one transaction for guaranteed execution order
- Intelligent Slippage Protection: Configurable slippage controls with automatic quote calculations
- Jito Bundle Integration: Uses Jito for MEV protection and faster transaction processing
- Real-time Pool Monitoring: Tracks Pump.fun reserves and automatically detects migration opportunities
- Security-First Design: Built-in wallet encryption and secure private key handling
- Comprehensive Logging: Detailed transaction logs and error tracking with Winston
- Fee Optimization: Smart fee calculation to maximize profit margins
Built with TypeScript and leveraging:
- @solana/web3.js for blockchain interactions
- @pump-fun/pump-sdk for Pump.fun integration
- Jito bundles for MEV protection
- SPL Token libraries for token account management
- Express.js for API endpoints (if needed)
- Node.js 20.18.0
- A funded Solana wallet
- Basic understanding of Solana token mechanics
- Clone the repository:
git clone https://github.com/cashblaze127/pumpfun-migration-pumpswap.git
cd pumpfun-migration-pumpswap
- Install dependencies:
npm install
- Configure your environment:
cp .env.example .env
# Edit .env with your wallet private key and configuration
Edit the test configuration in src/service/test.ts
:
const mintAddress = "YOUR_TOKEN_MINT_ADDRESS";
const min_migration_buy_test_fee = 20; // Minimum SOL for migration
const pumpswapBuy = 1000; // Tokens to buy on PumpSwap
const slippage = 30; // Slippage tolerance (%)
Run a test migration with your configured parameters:
npm run dev
Build and run:
npm run build
npm start
- Pool Analysis: Monitors Pump.fun pool reserves for your target token
- Migration Check: Determines if the token is ready for bonding curve completion
- Quote Calculation: Calculates optimal amounts with slippage protection
- Transaction Building: Constructs atomic transaction with:
- Pump.fun final buy instruction
- Migration trigger instruction
- PumpSwap first buy instruction
- Jito Execution: Submits bundle through Jito for MEV protection
- Slippage Protection: Automatic price impact calculations
- Reserve Validation: Ensures sufficient liquidity before execution
- Fee Limits: Configurable maximum fees to prevent overpaying
- Error Handling: Comprehensive error catching and logging
- Account Checks: Validates token accounts before transaction submission
The bot includes comprehensive logging for:
- Transaction signatures and Solscan links
- Pool reserve monitoring
- Fee calculations and slippage adjustments
- Error tracking and debugging information
This software is for educational purposes. Trading cryptocurrencies involves substantial risk of loss. Always:
- Test thoroughly on devnet first
- Start with small amounts
- Understand the risks involved
- Never invest more than you can afford to lose
We welcome contributions! Please:
- 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
For issues or questions:
- Open a GitHub issue
- Check the logs directory for debugging information
- Review the configuration parameters
Note: This bot requires active monitoring and is not financial advice. Always do your own research and understand the risks involved in automated trading.