Skip to content

topsecretagent007/BNB-Token-Sniper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BNB Token Sniper Bot 🚀

A powerful TypeScript-based BNB Token Sniper Bot that supports both normal token sniping and migration token sniping on Binance Smart Chain (BSC).

Features ✨

  • Dual Sniping Methods: Normal token sniping and migration token sniping
  • Real-time Monitoring: Monitors blockchain for new token deployments
  • Gas Optimization: Configurable gas settings for optimal transaction execution
  • Slippage Protection: Built-in slippage tolerance controls
  • Comprehensive Logging: Detailed logging with Winston
  • TypeScript: Fully typed for better development experience
  • Web3 Integration: Uses both Web3.js and Ethers.js for maximum compatibility

Sniping Methods 🎯

1. Normal Token Sniping

  • Monitors for new token deployments
  • Automatically buys tokens when they meet criteria
  • Uses PancakeSwap router for token swaps
  • Configurable liquidity and balance requirements

2. Migration Token Sniping

  • First buys tokens normally
  • Then executes migration contract function
  • Perfect for tokens that require migration after purchase
  • Configurable migration contract and function signature

Installation 📦

  1. Clone the repository:
git clone https://github.com/topsecretagent007/BNB-Token-Sniper.git
cd BNB-Token-Sniper
  1. Install dependencies:
npm install
  1. Copy environment configuration:
cp env.example .env
  1. Configure your settings in .env file

Configuration ⚙️

Environment Variables

BSC_RPC_URL=
BSC_CHAIN_ID=

PRIVATE_KEY=
WALLET_ADDRESS=

SNIPING_METHOD=
GAS_LIMIT=
GAS_PRICE_MULTIPLIER=
SLIPPAGE_TOLERANCE=

MIN_LIQUIDITY=
MAX_BUY_AMOUNT=
MIN_TOKEN_BALANCE=

MIGRATION_CONTRACT_ADDRESS=0x...
MIGRATION_FUNCTION_SIGNATURE=0x...
MIGRATION_GAS_LIMIT=

CHECK_INTERVAL=
MAX_RETRIES=
RETRY_DELAY=

LOG_LEVEL=
LOG_FILE=

Usage 🚀

Development Mode

npm run dev

Production Build

npm run build
npm start

Watch Mode (for development)

npm run watch

Transaction Examples Analysis

npm run tx-examples

Example Transactions 📊

https://bscscan.com/tx/0x55f8882dbb0f06aa7dc16a6445560a202e009b1220db834f19ae92902dd82c93 https://bscscan.com/tx/0xf9a70c24f1ecd490a9f2ba7c877d3f5cc3f5f44031ec0694d4cf8d2ec174bee5 https://bscscan.com/tx/0x1092078b35c380749e69b4c5d3f51d85fed4898fe3ec56dd2286fae5a08f3777 https://bscscan.com/tx/0xeca7257de97b8d5257f7ca5773dfeee054c7c2a243878f56a998efd5f5eace0d

Safety Features 🛡️

  • Slippage Protection: Prevents excessive price impact
  • Gas Limit Controls: Prevents failed transactions
  • Liquidity Checks: Ensures sufficient liquidity before trading
  • Balance Validation: Checks wallet balance before transactions
  • Error Handling: Comprehensive error handling and recovery
  • Transaction Monitoring: Real-time transaction status tracking

Contributing 🤝

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact 📞

Support 💬

If you find this project helpful, please consider:

  • ⭐ Starring the repository
  • 🐛 Reporting bugs
  • 💡 Suggesting new features
  • 📢 Sharing with others

Happy Sniping! 🎯

About

BNB token sniper bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published