Skip to content

Pumpfun Bundler + Pumpfun Final Buy + Pumpfun Migration + Pumpswap first buy, pumpfun + pumpswap, pumpfun migration pumpswap buy, Pumpfun Bot, Pumpswap Bot

Notifications You must be signed in to change notification settings

cashblaze129/pumpfun-migration-pumpswap-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 

Repository files navigation

PumpSwap Migration Bot

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.

πŸ“© Contact Me on Telegram

For inquiries, collaborations, or support, feel free to reach out:

Telegram Contact

Transaction Flow

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Pump.fun      β”‚    β”‚    Migration     β”‚    β”‚   PumpSwap      β”‚
β”‚   Final Buy     │───▢│    Trigger       │───▢│   First Buy     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚                       β”‚                       β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                Single Atomic Transaction

Related Link & Screenshot

What It Does

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:

  1. Execute the final buy on Pump.fun to complete the bonding curve
  2. Trigger the migration from Pump.fun to PumpSwap AMM
  3. 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.

Key Features

  • 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

Technical Architecture

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)

Prerequisites

  • Node.js 20.18.0
  • A funded Solana wallet
  • Basic understanding of Solana token mechanics

Installation

  1. Clone the repository:
git clone https://github.com/cashblaze127/pumpfun-migration-pumpswap.git
cd pumpfun-migration-pumpswap
  1. Install dependencies:
npm install
  1. Configure your environment:
cp .env.example .env
# Edit .env with your wallet private key and configuration

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 (%)

Usage

Testing Mode

Run a test migration with your configured parameters:

npm run dev

Production Mode

Build and run:

npm run build
npm start

How It Works

  1. Pool Analysis: Monitors Pump.fun pool reserves for your target token
  2. Migration Check: Determines if the token is ready for bonding curve completion
  3. Quote Calculation: Calculates optimal amounts with slippage protection
  4. Transaction Building: Constructs atomic transaction with:
    • Pump.fun final buy instruction
    • Migration trigger instruction
    • PumpSwap first buy instruction
  5. Jito Execution: Submits bundle through Jito for MEV protection

Safety Features

  • 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

Monitoring & Logging

The bot includes comprehensive logging for:

  • Transaction signatures and Solscan links
  • Pool reserve monitoring
  • Fee calculations and slippage adjustments
  • Error tracking and debugging information

Risk Disclaimer

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

Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Support

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.

About

Pumpfun Bundler + Pumpfun Final Buy + Pumpfun Migration + Pumpswap first buy, pumpfun + pumpswap, pumpfun migration pumpswap buy, Pumpfun Bot, Pumpswap Bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published