Skip to content

This is a sniper bot for Four.meme on BNB. Every trader wants to be the first buyer of a token, and I built this bot to achieve that goal.

Notifications You must be signed in to change notification settings

svendotdev/BNB-Four.meme-sniper-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

💹 BNB Chain Trading Bot ( support all EVM chains )

This is a sniper bot for Four.meme

A high-performance trading bot infrastructure built for the BNB Smart Chain, offering automated token deployment, liquidity pool creation, and advanced trading strategies. Designed with precision, speed, and enterprise-grade reliability — ideal for developers, traders, and liquidity engineers.

🧠 Executive summary

The BNB Chain Trading Bot is a modular, production-ready system for automating token launches and trading on PancakeSwap V3 and Four.meme. It supports sniper strategies, mempool copy-trading, atomic transaction bundling (via bloXroute), and programmatic volume generation — all designed to operate safely through local test harnesses and mainnet forking.

How it works

Sniper flow

Load targets from config → query router for expected out → apply configured slippage → perform WBNB → TOKEN swap → emit tx hash/receipt → optionally notify via Telegram.

✨ Key Features

**Token deployment: Programmatically create ERC-20 tokens with configurable name, symbol, and supply.

**Liquidity management: Create and initialize PancakeSwap V3 pools and provide liquidity automatically.

**Trading strategies: Built-in sniper, copy-trader (mempool mirror).

**Multi-wallet orchestration: Derive and manage multiple sub-wallets from a single master key, with automated funding/distribution.

**Testing & security: OpenZeppelin-based contracts, unit/integration tests, forked-mainnet simulation, and local audit-ready test suites.

**Data export & logging: Structured JSON output for wallets and transactions to support auditing and analytics.

🧰 Technology Stack

Component Technology
Smart Contracts Solidity ^0.8.9
Framework Hardhat ^2.19.5
Testing Hardhat Toolbox
DEX Integration Uniswap V3 SDK
Security OpenZeppelin Contracts
RPC Provider QuickNode
MEV Protection bloXroute

⚙️ Core Modules

  • Wallet Generation — Create and manage multiple sub-wallets derived from a single master key
  • BNB Distribution — Distribute BNB from the master wallet to all sub-wallets automatically
  • Token Deployment — Deploy tokens using the Four.meme factory contract
  • Auto-Buy Execution — Simultaneous buy transactions from all generated wallets
  • Balance Tracking — Retrieve and log both BNB and token balances
  • Exported Data — Automatically save wallet and transaction data in JSON format

This command will:

  1. Generate wallets (wallet_details.json)
  2. Distribute BNB to sub-wallets
  3. Deploy a new token
  4. Execute first buy transactions
  5. Save all transaction data to token_details.json

🪙 Contract Information

Parameter Value
Network Binance Smart Chain (Mainnet or Testnet)
Factory Contract 0x5c952063c7fc8610FFDB798152D69F0B9550762b
Launch Cost ~0.005 BNB
Liquidity Threshold Auto-liquidity at 24 BNB
Explorer https://bscscan.com/address/0x5c952063c7fc8610FFDB798152D69F0B9550762b

📁 Example Output Files

wallet_details.json

[
  {
    "index": 0,
    "address": "0xabc123...",
    "privateKey": "0xdef456..."
  }
]

token_details.json

{
  "address": "0x987654...",
  "name": "TestMeme",
  "symbol": "TME",
  "supply": "1000000",
  "transactions": [
    { "hash": "0x123...", "blockNumber": 38192612 }
  ]
}

🧾 Prerequisites

Before running the bot, make sure you have:

  • Node.js v16.x or higher
  • npm v8.x or higher
  • RPC Access — QuickNode or similar BSC RPC endpoint
  • bloXroute Account — API credentials for transaction bundling
  • Private Key — Funded wallet on BNB Smart Chain

⚠️ Security Guidelines

  • 🔐 Never commit .env files containing private keys or API credentials
  • 🧩 Use separate wallets for testing and production
  • 🧠 Audit transactions carefully before deploying on mainnet
  • 🧪 Test thoroughly on forked networks before live execution
  • ⛽ Monitor gas fees to avoid unnecessary spending
  • ⚔️ Understand and mitigate MEV risks when using atomic bundles

🧬 Workflow Summary

The bot executes the following operations in one atomic bundle via bloXroute:

  1. Deploy custom ERC20 token
  2. Approve token for NFPM (Non-Fungible Position Manager)
  3. Approve WBNB for NFPM
  4. Create a liquidity pool on PancakeSwap V3
  5. Initialize the pool with the starting price
  6. Add liquidity
  7. Execute buy transactions

All steps are bundled atomically to ensure consistency, front-run protection, and efficient execution.

🧑‍💻 Development Setup

git clone https://github.com/0xopsdev/bnb-chain-trading-bot.git
cd bnb-chain-trading-bot
npm install
cp .env.example .env
node bundler.js

🪄 Future Enhancements

  • Integrate AI-based strategy optimization
  • Support for cross-chain deployment (ETH, Base, Arbitrum)
  • Real-time Telegram / Discord alerts
  • Advanced PnL and analytics dashboard

🧾 License

This project is licensed under the MIT License — open for development, customization, and research purposes.

🧠 Disclaimer

This software is provided for educational and research purposes only.
Use at your own risk. The maintainers assume no responsibility for financial losses or regulatory implications.

This is referenced transaction.

👨‍💻 Author

📞 Telegram: manchatz

https://t.me/sven.dev

Built for performance. Secured for production. Optimized for BNB Smart Chain.

About

This is a sniper bot for Four.meme on BNB. Every trader wants to be the first buyer of a token, and I built this bot to achieve that goal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published