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.