Skip to content

A high-performance liquidity sniping bot for Uniswap V4 and compatible DEXs, featuring async mempool monitoring, Flashbots integration, and honeypot detection.

License

Notifications You must be signed in to change notification settings

InanXR/EVMSniperBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVM Sniper Bot Logo

🎯 EVM Mempool Sniper Bot

Python 3.10+ Web3.py License: MIT

A high-performance liquidity sniping bot for Uniswap V5 and Unichain L2, featuring async mempool monitoring, Flashbots integration, and honeypot detection.

Demo

📸 Demo

Sniper Bot Demo


⚡ Features

Features Map


🏗️ Architecture

Architecture Diagram


🚀 Quick Start

Prerequisites

  • Python 3.10+
  • Alchemy or Infura WebSocket RPC
  • (Optional) Flashbots reputation key

Installation

# Clone the repository
git clone https://github.com/yourusername/evm-mempool-sniper.git
cd evm-mempool-sniper

# Create virtual environment
python -m venv .venv
.venv\Scripts\activate  # Windows
# source .venv/bin/activate  # Linux/Mac

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Edit .env with your RPC URLs and private key

Run Demo

python sniper.py

Expected Output:

=================================================================
  UNISWAP SNIPER BOT v1.0.0
  Mempool Monitor | Flashbots Protect | Multi-Chain
=================================================================

[2024-05-22 14:30:15] INFO: Starting Ethereum mempool monitor...
[2024-05-22 14:30:17] INFO: Connected to Sepolia Testnet via Infura.
[2024-05-22 14:31:02] EVENT: PairCreated detected on Uniswap V2!
[2024-05-22 14:31:02] EVENT: PairCreated detected on Uniswap V2! Token: 0x....8f2a (TEST/ETH)
[2024-05-22 14:31:02] ACTION: Initiating buy transaction...  Gas: 150 gwei
[2024-05-22 14:31:03] SUCCESS: Buy transaction confirmed in block 5678901.
[2024-05-22 14:31:05] INFO: Calculating arbitrage opportunity...
[2024-05-22 14:31:06] ACTION: Executing sell on Sushiswap...
[2024-05-22 14:31:08] SUCCESS: Sell transaction confirmed. Simulated Profit: +0.045 ETH
[2024-05-22 14:31:10] INFO: Continuing mempool scan...

🔧 Configuration

Edit .env with your settings:

# RPC Endpoints (WebSocket required)
ETH_WSS=wss://eth-mainnet.g.alchemy.com/v2/YOUR_KEY

# Wallet (use dedicated wallet!)
PRIVATE_KEY=your_private_key

# Flashbots
FLASHBOTS_RELAY=https://relay.flashbots.net

Trading parameters in sniper.py:

SNIPE_AMOUNT_ETH = 0.5      # ETH per snipe
SLIPPAGE_PERCENT = 5.0      # Max slippage
PRIORITY_FEE_GWEI = 2.5     # Miner tip
MAX_BUY_TAX = 10.0          # Max acceptable tax

🔐 Security Features

Security Features


🛠️ Technical Stack

Technical Stack


📚 Key Concepts

Key Concepts


⚠️ Disclaimer

Disclaimer


📄 License

MIT License - see LICENSE for details.

Built with ❤️ for the Web3 community

About

A high-performance liquidity sniping bot for Uniswap V4 and compatible DEXs, featuring async mempool monitoring, Flashbots integration, and honeypot detection.

Topics

Resources

License

Stars

Watchers

Forks

Languages