PumpFun Sniper Bot

The PumpFun Sniper Bot is a cutting-edge Solana-based bot designed to snipe newly created tokens on PumpFun. It comes with advanced features like profit-taking, stop-loss, timeout functionalities, and metadata validation, making it one of the fastest and most user-friendly bots built with Solana APIs.

Features

Requirements

Ensure you have the latest version of Node.js installed. Download Node.js from here.

Installation

  1. Download and unzip the PumpFun Sniper Bot source code.
  2. Open the folder in Visual Studio Code or your terminal.
  3. Run the installation command:
  4. npm install

Configurations

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.

Start the Bot

After setting up your .env file, start the bot with the following command:

npm start

How It Works

The bot continuously monitors PumpFun for new token mints. Upon detecting a new token, it:

Security Recommendations

For enhanced security, use a new wallet dedicated to the bot. Create a new wallet easily via the Solana APIs: Create Keypair.

Suggestions and Support

For feature requests or questions, contact us on Telegram: @loveandcode.