Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.
/ TrxAutoSweep Public archive

The provided code is a JavaScript implementation for automatically sweeping TRX (Tron) funds from a source wallet to a destination wallet. It utilizes the TronWeb library to interact with the Tron blockchain.

License

Notifications You must be signed in to change notification settings

ELHARAKA/TrxAutoSweep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IMPORTANT NOTE

For sweeping balances from multiple private keys to one destination wallet, please refer to this repository

TRX AutoSweep

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.

Features

  • 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.

Prerequisites

  • Node.js
  • TronWeb library

Getting Started

  1. Clone the repository and navigate to the project directory.
  2. Install the required dependencies by running the following command:
    npm install tronweb
  3. Modify the YOUR_PRIVATE_KEY and SOURCE_ADDRESS variables in the auto-sweep.js file with your desired values.
  4. Modify the DESTINATION_ADDRESS variable in the auto-sweep.js file to set your desired destination wallet address.
  5. Run the script using the following command:
    node auto-sweep.js

Configuration

  • 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.

Contributing

Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to open an issue or submit a pull request.

License

This project is licensed under the Mozilla Public License 2.0.

Disclaimer

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.

Acknowledgments

  • TronWeb - JavaScript library for Tron blockchain interactions.

About

The provided code is a JavaScript implementation for automatically sweeping TRX (Tron) funds from a source wallet to a destination wallet. It utilizes the TronWeb library to interact with the Tron blockchain.

Topics

Resources

License

Stars

Watchers

Forks