A powerful TypeScript-based BNB Token Sniper Bot that supports both normal token sniping and migration token sniping on Binance Smart Chain (BSC).
- 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
- Monitors for new token deployments
- Automatically buys tokens when they meet criteria
- Uses PancakeSwap router for token swaps
- Configurable liquidity and balance requirements
- First buys tokens normally
- Then executes migration contract function
- Perfect for tokens that require migration after purchase
- Configurable migration contract and function signature
- Clone the repository:
git clone https://github.com/topsecretagent007/BNB-Token-Sniper.git
cd BNB-Token-Sniper- Install dependencies:
npm install- Copy environment configuration:
cp env.example .env- Configure your settings in
.envfile
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=npm run devnpm run build
npm startnpm run watchnpm run tx-exampleshttps://bscscan.com/tx/0x55f8882dbb0f06aa7dc16a6445560a202e009b1220db834f19ae92902dd82c93 https://bscscan.com/tx/0xf9a70c24f1ecd490a9f2ba7c877d3f5cc3f5f44031ec0694d4cf8d2ec174bee5 https://bscscan.com/tx/0x1092078b35c380749e69b4c5d3f51d85fed4898fe3ec56dd2286fae5a08f3777 https://bscscan.com/tx/0xeca7257de97b8d5257f7ca5773dfeee054c7c2a243878f56a998efd5f5eace0d
- 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
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Telegram: @topsecretagent_007
- Twitter: @lendon1114
- GitHub: topsecretagent007
If you find this project helpful, please consider:
- ⭐ Starring the repository
- 🐛 Reporting bugs
- 💡 Suggesting new features
- 📢 Sharing with others
Happy Sniping! 🎯