Byield-Auto-Bot
Byield-Auto-Bot copied to clipboard
Automated trading bot for Byield protocol on Sui testnet that performs SUI to nBTC swaps
Byield Auto Bot
Automated trading bot for Byield protocol on Sui testnet that performs SUI to nBTC swaps.
Features
- Multi-Account Support: Manage multiple wallets simultaneously
- Flexible Authentication: Support for both private keys and mnemonic phrases
- Proxy Support: HTTP, HTTPS, and SOCKS proxy support for enhanced privacy
- Balance Tracking: Real-time balance monitoring for all accounts
- Batch Transactions: Execute multiple swaps per account
Requirements
- Node.js 16.x or higher
- npm or yarn
- SUI testnet tokens
- Valid private keys or mnemonic phrases
Installation
-
Clone the repository
git clone https://github.com/vikitoshi/Byield-Auto-Bot.git cd Byield-Auto-Bot -
Install dependencies
npm install -
Set up environment variables
cp .env.example .env
Configuration
Environment Variables
Create a .env file in the root directory with your wallet credentials:
# Private Keys (if using private keys)
PRIVATE_KEY_1=your_private_key_here
PRIVATE_KEY_2=your_second_private_key_here
# Mnemonics (if using mnemonic phrases)
MNEMONIC_1=your twelve word mnemonic phrase here
MNEMONIC_2=your second twelve word mnemonic phrase here
Note: You can use either private keys or mnemonics, or mix both. The bot will automatically detect and load all available credentials.
Proxy Configuration (Optional)
Create a proxies.txt file in the root directory with one proxy per line:
http://username:[email protected]:8080
https://username:[email protected]:8080
socks5://username:[email protected]:1080
Supported proxy formats:
http://proxy:porthttps://proxy:portsocks4://proxy:portsocks5://proxy:porthttp://username:password@proxy:port
Usage
-
Run the bot
node index.js -
Follow the prompts
- Enter the SUI amount per transaction
- Enter the number of transactions per account
- The bot will execute transactions automatically
Project Structure
Byield-Auto-Bot/
├── index.js # Main bot script
├── package.json # Dependencies and scripts
├── .env # Environment variables (create this)
├── .env.example # Environment template
├── proxies.txt # Proxy list (optional)
└── README.md # This file
Safety Features
- Balance Validation: Ensures sufficient funds before transactions
- Error Handling: Comprehensive error catching and logging
- Rate Limiting: Built-in delays between transactions
- Proxy Rotation: Automatic proxy switching for enhanced privacy
Troubleshooting
Common Issues
-
"No private keys found"
- Check your
.envfile format - Ensure variables are named correctly (
PRIVATE_KEY_1,MNEMONIC_1, etc.)
- Check your
-
"Insufficient balance"
- Ensure your accounts have enough SUI tokens
- Check balance using the built-in balance checker
-
"Transaction failed"
- Check network connectivity
- Verify proxy settings if using proxies
- Ensure sufficient gas fees
-
Proxy connection issues
- Verify proxy credentials and format
- Test proxy connectivity independently
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Disclaimer
This bot is for educational and testing purposes on Sui testnet. Use at your own risk. Always verify transactions and understand the risks involved in automated trading.
License
MIT License - see LICENSE file for details.
Support
For support and questions:
- Open an issue on GitHub
- Check the troubleshooting section
- Review the logs for detailed error information
⚠️ Important: This bot operates on Sui testnet. Always test thoroughly before using on mainnet.