Skip to content

Solana PumpSwap Bot (IDL) for swaps in PumpSwap. Newly migrated from pumpfun to PumpSwap.

Notifications You must be signed in to change notification settings

PioSol7/Solana_PumpSwap_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PumpSwap SDK

Solana Raydium Bundler & Pumpfun Bundler

This bot is designed to to buy and sell tokens in PumpSwap that migrated from pumpfun.

Features

  • Presimulation: Estimate token amount and Sol amount needed for bundler wallets.
  • Token Creation: Create new token with vanity address.
  • Launch New Pool: Create Market in raydium and create pool in Raydium. Create new pool in Pumpfun.
  • Bundle Buy: Buying with more than 20 wallets in the same block.
  • Sell Mode: Gradually sells all tokens in sub-wallets through small transactions or Sell at once from all sub-wallets.
  • Token CA Settings: Configurable token mint with Vanity address.
  • Logging: Supports adjustable logging levels for better monitoring and debugging.

Usage

  1. Clone the repository
git clone https://github.com/PioSol7/Solana_PumpSwap_Bot.git
cd Solana_PumpSwap_Bot
  1. Install dependencies
npm install
  1. Configure the environment variables

Rename the .env.example file to .env and set RPC and WSS, main keypair's secret key and all settings in settings.ts file.

  1. Run the bot
npm start

Buy token through cli

ts-node src/buy-cli.ts --token <ADDRESS_TOKEN> --sol <NUMBER_OF_SOL>

Sell token through cli

ts-node src/sell-cli.ts --token <ADDRESS_TOKEN> --percentage <SELL_PERCENTAGE>

buy/sell on PumpSwap

import {wallet_1} from "./constants";
import {PumpSwapSDK} from './pumpswap';
async function main() {
    const mint = "your-pumpfun-token-address";
    const sol_amt = 0.99; // buy 1 SOL worth of token using WSOL
    const sell_percentage = 0.5; // sell 50% of the token
    const pumpswap_sdk = new PumpSwapSDK();
    await pumpswap_sdk.buy(new PublicKey(mint), wallet_1.publicKey, sol_amt); // 0.99 sol
    await pumpswap_sdk.sell_percentage(new PublicKey(mint), wallet_1.publicKey, sell_percentage);
    await pumpswap_sdk.sell_exactAmount(new PublicKey(mint), wallet_1.publicKey, 1000); // 1000 token
}

Fetch the price

import {getPrice} from './pool';
async function main() {
    const mint = new PublicKey("your-pumpfun-token-address");   
    console.log(await getPrice(mint));
}

Fetch the pool

import {getPumpSwapPool} from './pool';
async function main() {
    const mint = new PublicKey("your-pumpfun-token-address");   
    console.log(await getPumpSwapPool(mint));
}
## Author

Discord: takhi_77 in discord

Telegram: [@SolSon](https://t.me/@pio_sol)

You can always feel free to find me here for my help on other projects.

About

Solana PumpSwap Bot (IDL) for swaps in PumpSwap. Newly migrated from pumpfun to PumpSwap.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published