This repository contains the codebase for the Pump-Fun Sniper Bot developed by Official Website . Although this project is archived and not intended for further iteration, this README provides a comprehensive overview to help anyone who may want to understand or run the bot.
The Pump-Fun Sniper Bot is designed to interact with the Solana blockchain, purchasing newly minted coins and managing them, based on our replication of orcACR...'s strategy. I detail the strategy more in my first blog post on this project, which can be found here.
- Take Profit (%): Automatically sell tokens when a set profit percentage is reached.
- Stop Loss (%): Minimize losses by automatically selling at a specified loss percentage.
- Timeout Functionality: Sell tokens if neither take profit nor stop loss conditions are met within a set time.
- Metadata Validation: Filters to check for valid URLs (e.g., Telegram, Twitter, Website).
- Snipe Tag: Filters to check name in METADATA and only buys the valid ones.
- BloXroute TIPs: Leverage TIPs for faster transaction processing.
- No RPC Required: Simplified setup without the need for an RPC server.
Download the latest source code of Pump.Fun Sniper Bot from Here
Ensure you have the latest version of Node.js installed. Download Node.js from here
- Download and unzip the PumpFun Sniper Bot source code.
- Open the folder in Visual Studio Code or your terminal.
- Run the installation command:
npm install
After installation, configure your .env file with the required settings:
Key | Description |
---|---|
PRIVATE_KEY | Your wallet's private key in base58 format (e.g., Phantom wallet private key). |
WALLET | The public key of your wallet. |
AMOUNT | The amount (in SOL) to spend on each token. |
SLIPPAGE | Slippage tolerance (e.g., 10 for 10%). |
PROTECTION | Set to true for MEV protection or false for maximum speed. |
BUY_TIP | BloXroute TIP for buy transactions (in SOL). |
SELL_TIP | BloXroute TIP for sell transactions (in SOL). |
TAKE_PROFIT | Profit-taking percentage (e.g., 10 for 10%). |
STOP_LOSS | Stop-loss percentage (e.g., 10 for 10%). |
TIMEOUT | Timeout value (in minutes) for automatic sell if no stop loss or take profit is triggered. |
CHECK_URLS | Set to true to validate token metadata (Telegram, Twitter, Website URLs), or false to skip validation. |
TIMEOUT | Timeout value (in minutes) for automatic sell if no stop loss or take profit is triggered. |
SNIPE_BY_TAG | Set A value to snipe only the tokens with that name in token name metadata empty if you don't need this feature. |
After setting up your .env file, start the bot with the following command:
npm start
The bot continuously monitors PumpFun for new token mints. Upon detecting a new token, it:
- Buys the token based on your configurations.
- Saves transaction data in list.json.
- Monitors the token for: Take profit conditions. Stop loss conditions.
- Timeout conditions. Updates list.json with the status of each bought token.
- Solana RPC and WebSocket: Ensure you are using high-performance RPC and WebSocket URLs for optimal performance.
- Best sniper trade tip: Make sure you have minimum 1-5 SOL to snipe the tokens.
- Jito Integration: Optional integration for improved transaction handling.
Read more about the development of this project on my docs.