For sweeping balances from multiple private keys to one destination wallet, please refer to this repository
TRX AutoSweep is a script written in JavaScript that allows for the automatic sweeping of TRX (Tron) funds from a source wallet to a destination wallet. It utilizes the TronWeb library to interact with the Tron blockchain.
- Checks the available balance of a wallet address.
- Transfers the funds to the specified destination wallet if there are available funds.
- Periodically performs the auto-sweeping process at regular intervals.
- Node.js
- TronWeb library
- Clone the repository and navigate to the project directory.
- Install the required dependencies by running the following command:
npm install tronweb
- Modify the
YOUR_PRIVATE_KEY
andSOURCE_ADDRESS
variables in theauto-sweep.js
file with your desired values. - Modify the
DESTINATION_ADDRESS
variable in theauto-sweep.js
file to set your desired destination wallet address. - Run the script using the following command:
node auto-sweep.js
- Modify the Tron network endpoint in the TronWeb instance setup to use the desired Tron network.
- Adjust the interval duration in the
setInterval
function to change the frequency of auto-sweeping.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to open an issue or submit a pull request.
This project is licensed under the Mozilla Public License 2.0.
Please note that the use of this script is at your own risk. Ensure that you have proper authorization and adhere to all legal and regulatory requirements when using it to manage TRX wallets and transfer funds.
- TronWeb - JavaScript library for Tron blockchain interactions.