A TypeScript-based automated sniper bot for token trading on Binance Smart Chain (BSC), specifically designed for Fourmeme and other BSC tokens.
If you have a question or feedback, hope to get your message from telegram or whatsApp - +44 7832607596.
- 🚀 Fast token sniping on BSC
- 📊 Real-time price monitoring
- 💰 Automated buy/sell execution
- 🔐 Secure wallet integration
- ⚡ Gas optimization
- 🎯 Customizable trading parameters
- 📈 Slippage protection
- 🔔 Transaction notifications
- Node.js (v16 or higher)
- npm or yarn
- A BSC wallet with BNB for gas
- Basic knowledge of BSC and PancakeSwap
- Clone the repository:
git clone <repository-url>
cd BNB-Sniper-Bot-Fourmeme- Install dependencies:
npm install- Create a
.envfile in the root directory:
PRIVATE_KEY=your_private_key_here
RPC_URL=https://bsc-dataseed1.binance.org
GAS_PRICE=5
GAS_LIMIT=300000
SLIPPAGE=10
MAX_BUY_AMOUNT=0.1
AUTO_SELL=true
TAKE_PROFIT_PERCENT=100
STOP_LOSS_PERCENT=50.env file secure and never commit it to version control.
PRIVATE_KEY: Your BSC wallet private key (without 0x prefix)RPC_URL: BSC RPC endpoint (use public or private node)GAS_PRICE: Gas price in gwei (default: 5)GAS_LIMIT: Gas limit for transactions (default: 300000)SLIPPAGE: Maximum slippage percentage (default: 10)MAX_BUY_AMOUNT: Maximum BNB amount per buy (default: 0.1)AUTO_SELL: Enable automatic selling (true/false)TAKE_PROFIT_PERCENT: Profit percentage to trigger sell (default: 100)STOP_LOSS_PERCENT: Loss percentage to trigger sell (default: 50)
npm run devnpm run build
npm startnpm run watch- Start the bot:
npm run dev-
Specify the token contract address when prompted or update the code to monitor specific tokens.
-
Monitor transactions: The bot will automatically:
- Monitor for new token listings
- Execute buy orders when conditions are met
- Track your positions
- Execute sell orders based on your profit/loss settings
The bot uses the following strategy:
- Monitors for new token pairs on PancakeSwap
- Executes buy orders immediately when a new token is detected
- Tracks price movements in real-time
- Automatically sells when take profit or stop loss is triggered
- This bot is for educational purposes only
- Cryptocurrency trading involves substantial risk
- Always test with small amounts first
- Never invest more than you can afford to lose
- Be aware of rug pulls and honeypots
- Use this bot at your own risk
- The authors are not responsible for any financial losses
- Ensure compliance with local regulations
- Automated trading may be restricted in some jurisdictions
-
"Insufficient funds" error:
- Ensure you have enough BNB for gas and trades
- Check your wallet balance
-
"Transaction failed" error:
- Increase gas price in
.env - Check network congestion
- Verify token contract address
- Increase gas price in
-
Connection issues:
- Switch to a different RPC endpoint
- Check your internet connection
- Verify RPC URL in
.env
BNB-Sniper-Bot-Fourmeme/
├── src/
│ ├── index.ts # Main entry point
│ ├── bot.ts # Bot logic
│ ├── wallet.ts # Wallet management
│ ├── contract.ts # Contract interaction
│ ├── monitor.ts # Price monitoring
│ └── types.ts # TypeScript types
├── dist/ # Compiled JavaScript
├── .env # Environment variables (not in repo)
├── package.json
├── tsconfig.json
└── README.md
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
For issues and questions:
- Check the existing issues
- Create a new issue with detailed description
- Include error logs and configuration details
This software is provided "as is" without warranty of any kind. The user assumes all risks associated with using this bot, including but not limited to financial losses, unauthorized access to wallet funds, and regulatory compliance issues. Always use at your own risk and never share your private keys.