This Node.js script monitors EVM wallet balances in real-time and automatically withdraws excess funds to a designated address.
🔄 Multi-RPC Monitoring – Supports multiple EVM RPC endpoints for better reliability.
💰 Auto Withdrawal – Transfers funds when balance exceeds the set buffer.
🔗 Auto-Reconnect – Automatically reconnects if an RPC connection is lost.
🕒 Live Transaction Tracking – Displays the latest transactions with timestamps (UTC+7).
git clone https://github.com/kidd142/evm-drainv2.git
cd evm-drainv2
Ensure you have Node.js installed, then run:
npm install dotenv jsonwebtoken ethers readline
Create a .env
file in the project root and configure your environment variables:
# Address to Receive Withdrawn Funds
RECEIVER_ADDRESS=0xYourReceiverAddress
# Minimum Balance to Keep in Wallet
TX_BUFFER=0.0005
# EVM RPC URLs (separate with \n)
RPC_URLS="https://rpc1
https://rpc2
https://rpc3
"
# Private Keys for Wallets (separate with \n)
PRIVATE_KEYS="privatekey1
privatekey2
privatekey3
"
🔹 RPC_URLS: List of EVM RPC URLs (newline-separated).
🔹 PRIVATE_KEYS: List of private keys (newline-separated).
🔹 RECEIVER_ADDRESS: Destination wallet address for withdrawals.
🔹 TX_BUFFER: Minimum ETH balance to retain before withdrawing.
Run the script with:
node bot.js
When prompted, enter a valid token:
🔑 Enter your token: *********
✅ Token Verified! Starting the bot...
The bot will:
- Continuously track new MultiChain blocks across all rpcurl.
- Display live wallet balances and recent transactions.
- Automatically withdraw funds.
🔑 Enter your token: *********
✅ Token Verified! Starting the bot...
🔄 Listening for new blocks...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌍 RPC 1: Block 1987654
🌍 RPC 2: Block 1987653
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🆕 Last Transaction: 0xabc123...f789 at 12:34:56 (UTC+7)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ New Transaction: 0xdef456...a987 at 12:45:12 (UTC+7)
❌ Invalid Token? – Check your .env
JWT_SECRET value.
❌ RPC Errors? – Try different RPC URLs or ensure they are online.
❌ No Transactions? – Ensure wallet balances exceed TX_BUFFER
.
This project is for educational purposes only. Use at your own risk.
Contributions are welcome! To contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -m 'Add new feature'
) - Push to your branch (
git push origin feature-branch
) - Open a Pull Request
If you like this project, consider giving it a ⭐ on GitHub! 😊 If you would like to support the development of this project, you can make a donation using the following addresses:
- Solana:
EtgVgPvN6Z35551w7znEJ22mvHDmGpY9nHwQwWtgdQZ6
- EVM:
0xb150b7f241979c89fabb9bf333ffd86b8e2e34d4
- BTC:
bc1pp5r2sn8k3ryjdc48p7lmuhjmsep489ac89lhl7z8pg65jmzf9pusk6hsd8