A fast and minimal Solana sniper bot designed to instantly buy newly migrated tokens from Pump.fun to PumpSwap — with custom sell logic and real-time transaction parsing via gRPC.
- ⛽ Watches on-chain events in real-time using
grpc - 🔍 Filters Pump.fun-to-PumpSwap token migrations
- 💸 Executes buy transactions instantly for newly listed tokens
- 📤 Implements basic sell logic to capture early gains
- 🛠️ Uses official IDLs for Pump.fun and PumpSwap
- Clone the repository:
git clone https://github.com/solcanine/solana-pumpswap-sniper-bot.git
cd solana-pumpswap-sniper-bot
- Install dependencies:
npm install
# or
yarn install
- Configure environment variables:
Create a .env file in the root directory:
PRIVATE_KEY=your_wallet_private_key
RPC_URL=https://api.mainnet-beta.solana.com
GRPC_ENDPOINT=grpc://your_grpc_server
Start the bot:
npm run start
# or
yarn start
The bot will:
-
Listen for Pump.fun → PumpSwap token migrations.
-
Automatically attempt to buy newly listed tokens.
-
Optionally execute sell logic based on your configuration.