Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solguru310/solana-pumpfun-sniper-bot
The Pumpfun sniper bot is built to target newly minted tokens on the Pumpfun DEX and offers upgrade options through Geyser.
https://github.com/solguru310/solana-pumpfun-sniper-bot
dex pumpfun pumpfun-bot sniper-bot solana
Last synced: 21 days ago
JSON representation
The Pumpfun sniper bot is built to target newly minted tokens on the Pumpfun DEX and offers upgrade options through Geyser.
- Host: GitHub
- URL: https://github.com/solguru310/solana-pumpfun-sniper-bot
- Owner: solguru310
- License: apache-2.0
- Created: 2024-10-14T09:50:51.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-14T09:56:51.000Z (3 months ago)
- Last Synced: 2024-10-18T18:53:37.192Z (3 months ago)
- Topics: dex, pumpfun, pumpfun-bot, sniper-bot, solana
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pumpfun Sniper Bot
***Pumpfun Sniper Bot*** is an automated trading tool designed for Pump.fun. It monitors new token creation events, places buy orders, and sells tokens automatically after a customizable delay. The bot is simple to set up and fully configurable through environment variables.
## Contact me
Telegram: [@dwlee918](https://t.me/@dwlee918)X: [@derricklee918](https://x.com/derricklee918)
## Features
- **Automated Trading**: Buys and sells tokens based on real-time events.
- **Interactive CLI**: Easily configure the bot settings through a user-friendly CLI.
- **Comprehensive Logging**: Tracks all activities and errors in a log file.
- **Auto-Sell Mechanism**: Automatically sells tokens after a set delay.## Quick Start
1. **Install Dependencies**:
```bash
npm install
```2. **Configure the Bot**: Run the bot and select 'Edit config'
![alt text](https://i.imgur.com/pb6TAQ0.png)
3. **Run the Bot**:
```bash
node sniper.mjs
```## Configuration
The bot is configured through a `.env` file:
```plaintext
RPC_ENDPOINT=https://your.rpc.endpoint (Helius recommended)
WS_ENDPOINT=wss://your.ws.endpoint
LOG_FILE=bot.log
BUYING_ENABLED=true
INVESTMENT_AMOUNT=0.05
SLIPPAGE_TOLERANCE=20
WALLET_PUBLIC_KEY=your_wallet_public_key
WALLET_PRIVATE_KEY=your_wallet_private_key
AUTO_SELL_DELAY_MS=30000
```### Key Settings
- **RPC_ENDPOINT**: RPC endpoint for Solana network.
- **WS_ENDPOINT**: WebSocket endpoint for real-time updates.
- **LOG_FILE**: Log file path.
- **BUYING_ENABLED**: Enable/disable buying.
- **AUTO_SELL_DELAY_MS**: Delay before selling tokens.## Future Updates
I am going to add stop loss and take profit function to the sniper, so sniper will auto-sell the tokens when the price of the token meets the TP and SL.