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.
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.
Load targets from config → query router for expected out → apply configured slippage → perform WBNB → TOKEN swap → emit tx hash/receipt → optionally notify via Telegram.
**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.
| 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 |
- 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
- Generate wallets (
wallet_details.json) - Distribute BNB to sub-wallets
- Deploy a new token
- Execute first buy transactions
- Save all transaction data to
token_details.json
| 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 |
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 }
]
}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
- 🔐 Never commit
.envfiles 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
The bot executes the following operations in one atomic bundle via bloXroute:
- Deploy custom ERC20 token
- Approve token for NFPM (Non-Fungible Position Manager)
- Approve WBNB for NFPM
- Create a liquidity pool on PancakeSwap V3
- Initialize the pool with the starting price
- Add liquidity
- Execute buy transactions
All steps are bundled atomically to ensure consistency, front-run protection, and efficient execution.
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- Integrate AI-based strategy optimization
- Support for cross-chain deployment (ETH, Base, Arbitrum)
- Real-time Telegram / Discord alerts
- Advanced PnL and analytics dashboard
This project is licensed under the MIT License — open for development, customization, and research purposes.
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.
📞 Telegram: manchatz
Built for performance. Secured for production. Optimized for BNB Smart Chain.