Skip to content

BatchTronAutoSweep is a powerful script that automates the process of transferring TRX balances from multiple private keys to a designated destination address.

License

Notifications You must be signed in to change notification settings

ELHARAKA/BatchTronAutoSweep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BatchTronAutoSweep

BatchTronAutoSweep is a powerful script that automates the process of transferring TRX balances from multiple private keys to a designated destination address. With seamless integration with TronWeb and file input support, it simplifies the sweeping of funds from various wallets, saving time and effort.

BatchTronAutoSweep - Demo Version

This demo script in this repo demonstrates an auto-sweeping functionality for Tron (TRX) wallets. It reads a list of wallet addresses from a file, simulates balance retrieval, and transfers any available funds to a designated destination address. It is a proof of concept and doesn't involve real TRX balances or transactions.

Usage DEMO ONLY

To run the demo, follow these steps:

  1. Clone the repository or download the demo script.
  2. Make sure you have Node > 14 installed on your system.
  3. Open a terminal or command prompt in the directory where the script is located.
  4. Install the required dependencies by running the command: npm install tronweb
  5. Update the demowallets.txt file with the desired wallet private keys.
  6. Run the script using the command: node multitronsweepdemo.js

Please note

This script is a demo version provided for evaluation purposes only. It does not interact with real TRX balances or perform actual transactions. Use this demo script to understand the functionality.

Features - Full Version

The full version of the BatchTronAutoSweep script offers a comprehensive set of features to simplify and streamline the management of TRX balances. It enables automated sweeping of TRX balances from multiple private keys to a designated destination address. The integration with TronWeb ensures seamless transaction handling, providing a smooth and reliable experience.

With easy-to-use file input support, you can conveniently provide the private keys of the source wallets, allowing for efficient management of multiple wallets in one go. The script also includes real-time balance detection, which automatically retrieves and updates the balances of the source addresses, enabling efficient fund management.

To ensure reliability, the full version of the script incorporates error handling and logging mechanisms. This ensures that any errors or issues encountered during the sweeping process are properly handled and logged, providing visibility into the script's operation.

Please note that the full version of BatchTronAutoSweep is not available as an open-source project. For inquiries regarding the purchase of the full version, please contact the developer at fahd@web3dev.ma or via Telegram.

Overview

The script sets up a TronWeb instance by providing the desired network endpoint.

It reads private keys from a "wallets.txt" file and stores them in the privateKeyData array.

The getBalance function retrieves the balance of a given address by using the provided private key.

The sendTransaction function creates and sends a transaction from a source address (identified by the private key) to the specified destination address.

The autoSweep function iterates through the private keys in privateKeyData, checks their balances, and transfers any available funds to the destination address.

The startAutoSweep function sets up a periodic timer to execute the autoSweep function every 60 seconds.

The script starts the auto-sweeping process by calling the startAutoSweep function.

In summary, this script continuously checks the balances of the provided private keys and transfers any available funds to the specified destination address. It automates the sweeping process, making it easier to manage TRX balances across multiple wallets.

Usage

  1. Clone the repository.
  2. Install the required dependencies using npm install tronweb.
  3. make sure you have node version > 14.
  4. Prepare a wallets.txt file with the private keys of the source wallets.
  5. Customize the destinationAddress variable in BatchTronAutoSweep.js with your desired destination wallet address.
  6. Run the script using node BatchTronAutoSweep.js.
  7. Sit back and let the script automatically transfer TRX balances from the source wallets to the destination address.

License

This project is licensed under the MIT License.

For sweeping balances from 1 single private key to one destination wallet, please refer to this repository.

About

BatchTronAutoSweep is a powerful script that automates the process of transferring TRX balances from multiple private keys to a designated destination address.

Topics

Resources

License

Stars

Watchers

Forks