Skip to content

vikitoshi/LayerEdge-Auto-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

LayerEdge Auto Bot

Automated bot for LayerEdge airdrop farming with sequential wallet processing and WebSocket monitoring.

Register

Features

  • Sequential Processing: Solves captcha one wallet at a time to avoid rate limiting
  • 🔄 Auto Reconnection: Automatic WebSocket reconnection with token refresh
  • 🛡️ Proxy Support: Multi-proxy support with automatic rotation
  • 📊 Real-time Monitoring: Live WebSocket message tracking for all wallets
  • 🎯 Points Tracking: Automatic epoch points monitoring
  • 🔐 Multiple Wallets: Support for unlimited wallets
  • 📝 Detailed Logging: Color-coded logging with wallet identification

Prerequisites

  • Node.js v16 or higher
  • npm or yarn package manager
  • 2Captcha API key (optional, for automatic captcha solving)
  • Valid LayerEdge wallet private keys

Installation

  1. Clone the repository

    git clone https://github.com/vikitoshi/LayerEdge-Auto-Bot.git
    cd LayerEdge-Auto-Bot
  2. Install dependencies

    npm install
  3. Create configuration files

    cp .env.example .env
    touch proxies.txt

Configuration

Environment Variables (.env)

Create a .env file in the root directory with the following structure:

# 2Captcha API Key (optional - for automatic captcha solving)
2captcha_api=your_2captcha_api_key_here

# Wallet 1 Configuration
private_key_1=your_private_key_here
id_1=auto_generated_user_id
ws_token_1=manual_websocket_token_if_no_2captcha

# Wallet 2 Configuration
private_key_2=your_private_key_here
id_2=auto_generated_user_id
ws_token_2=manual_websocket_token_if_no_2captcha

# Add more wallets as needed (wallet_3, wallet_4, etc.)

Proxy Configuration (proxies.txt)

Add one proxy per line in the following format:

http://username:password@proxy1.example.com:8080
http://username:password@proxy2.example.com:8080
socks5://username:password@proxy3.example.com:1080

Usage

Automatic Mode (with 2Captcha)

If you have a 2Captcha API key, the bot will automatically solve captchas:

npm start

Manual Mode (without 2Captcha)

  1. Get WebSocket tokens manually for each wallet through LayerEdge dashboard
  2. Add tokens to .env file as ws_token_1, ws_token_2, etc.
  3. Run the bot:
    npm start

Bot Workflow

The bot processes wallets in the following sequential order:

  1. Sequential Captcha Solving 📝

    • Wallet 1: Solve captcha → Get token
    • Wallet 2: Solve captcha → Get token
    • Wallet N: Solve captcha → Get token
  2. Wallet Details Fetching 🔍

    • Fetch user IDs for all wallets
    • Update .env file with user IDs
  3. Node Status Monitoring 📊

    • Check epoch points for each wallet
    • Display current points status
  4. WebSocket Connections 🔌

    • Connect all wallets simultaneously
    • Start heartbeat and point farming
  5. Message Monitoring 📱

    • Display WebSocket messages every 30 seconds
    • Track points updates and farming status

Monitoring

The bot provides real-time monitoring with:

  • Color-coded logs for different operations
  • Wallet identification with last 4 digits of address
  • WebSocket message summary every 30 seconds
  • Automatic error handling and reconnection
  • Proxy rotation on connection issues

Troubleshooting

Common Issues

❌ "No 2Captcha API key" Error

  • Add your 2Captcha API key to .env file
  • Or manually add ws_token_X for each wallet

❌ "Invalid private key" Error

  • Ensure private keys are valid Ethereum private keys
  • Remove '0x' prefix if present

❌ "CORS Error" when fetching wallet details

  • Add working proxies to proxies.txt
  • Ensure proxy format is correct

❌ WebSocket connection failures

  • Check if tokens are valid and not expired
  • Verify wallet is registered on LayerEdge
  • Ensure stable internet connection

File Structure

LayerEdge-Auto-Bot/
├── index.js           # Main bot script
├── package.json       # Node.js dependencies
├── .env              # Configuration file
├── .env.example      # Configuration template
├── proxies.txt       # Proxy list
└── README.md         # This file

Security Notes

⚠️ Important Security Reminders:

  • Never share your private keys or .env file
  • Use dedicated wallets for airdrop farming
  • Keep your 2Captcha API key secure
  • Regularly rotate your proxies
  • Monitor bot activity regularly

Contributing

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

Disclaimer

This bot is for educational purposes only. Use at your own risk. The developers are not responsible for any losses or damages that may occur from using this software.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

  • GitHub Issues: Report bugs
  • Telegram: Join our community for support
  • Documentation: Check the wiki for detailed guides

⭐ Star this repository if it helped you!

Made with ❤️ by vikitoshi

About

Automated bot for LayerEdge airdrop farming with sequential wallet processing and WebSocket monitoring.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published