Solana PumpSwap Bot (IDL) for swaps in PumpSwap. Newly migrated from pumpfun to PumpSwap.
Last updated May 27, 2026
32
Stars
4
Forks
0
Issues
0
Stars/day
Attention Score
20
Topics
Language breakdown
TypeScript 100.0%
▸ Files
click to expand
README
https://x.com/0xmooncity
PumpSwap SDK
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
- Clone the repository
git clone https://github.com/PioSol7/SolanaPumpSwapBot.git
cd SolanaPumpSwapBot
- Install dependencies
npm install
- Configure the environment variables
- Run the bot
npm start
Buy token through cli
ts-node src/buy-cli.ts --token <ADDRESSTOKEN> --sol <NUMBEROF_SOL>
Sell token through cli
ts-node src/sell-cli.ts --token <ADDRESSTOKEN> --percentage <SELLPERCENTAGE>
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 pumpswapsdk.buy(new PublicKey(mint), wallet1.publicKey, sol_amt); // 0.99 sol
await pumpswapsdk.sellpercentage(new PublicKey(mint), wallet1.publicKey, sellpercentage);
await pumpswapsdk.sellexactAmount(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));
}
🔗 More in this category