A Node.js application that monitors a Sui wallet and automatically transfers tokens to a specified destination address.
- Real-time wallet balance monitoring
- Automatic token transfer when balance exceeds threshold
- Support for both hex and base58-encoded private keys
- Configurable RPC endpoint and minimum gas settings
- Detailed logging with Explorer links
- Node.js >= 16
- npm or yarn
- A Sui wallet private key
- A destination wallet address
- Clone the repository
https://github.com/mesamirh/SuiSweeper.git
cd SuiSweeper- Install dependencies:
npm installCreate a .env file in the root directory with:
RPC_URL=https://fullnode.mainnet.sui.io:443
PRIVATE_KEY=your_private_key
DESTINATION_ADDRESS=your_destination_addressStart the monitor:
npm start- @mysten/sui.js: ^0.54.1
- bs58: ^5.0.0
- dotenv: ^16.4.7