Build a PumpFun sniper bot in 5 minutes.
3 steps:
npm install getpumpagent- Add your wallet to
.env npm start
That's it. You're sniping PumpFun tokens.
git clone https://github.com/getpumpagent/pumpfun-sniper-bot.git
cd pumpfun-sniper-bot
npm install
cp .env.example .envAdd your wallet keys to .env:
WALLET_PUBLIC_KEY=YourPublicKeyHere
WALLET_PRIVATE_KEY=YourPrivateKeyHere
BUY_AMOUNT_SOL=0.1
Run it:
npm start- Polls PumpFun for new token launches every 10 seconds
- Filters by age and risk score
- Logs every new token it finds
- Swap execution is commented out by default — uncomment one block to go live
All config lives in .env:
| Variable | Default | Description |
|---|---|---|
WALLET_PUBLIC_KEY |
— | Your Solana wallet |
WALLET_PRIVATE_KEY |
— | Used to sign transactions |
BUY_AMOUNT_SOL |
0.1 |
SOL per snipe |
Built with getpumpagent — the trading API your agent deserves.