https://github.com/mesamirh/suisweeper
💰 A Node.js Sui Wallet Monitor & Auto-Transfer Script that continuously checks your SUI wallet balance and automatically transfers funds (minus gas) to a destination address when the balance exceeds the minimum gas threshold.
https://github.com/mesamirh/suisweeper
Last synced: about 2 months ago
JSON representation
💰 A Node.js Sui Wallet Monitor & Auto-Transfer Script that continuously checks your SUI wallet balance and automatically transfers funds (minus gas) to a destination address when the balance exceeds the minimum gas threshold.
- Host: GitHub
- URL: https://github.com/mesamirh/suisweeper
- Owner: mesamirh
- Created: 2025-03-25T17:03:58.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T17:28:29.000Z (2 months ago)
- Last Synced: 2025-03-25T18:34:00.554Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SuiSweeper - Sui Wallet Monitor
A Node.js application that monitors a Sui wallet and automatically transfers tokens to a specified destination address.
## Features
- 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## Prerequisites
- Node.js >= 16
- npm or yarn
- A Sui wallet private key
- A destination wallet address## Installation
1. Clone the repository
```bash
https://github.com/mesamirh/SuiSweeper.git
cd SuiSweeper
```2. Install dependencies:
```bash
npm install
```## Configuration
Create a `.env` file in the root directory with:
```properties
RPC_URL=https://fullnode.mainnet.sui.io:443
PRIVATE_KEY=your_private_key
DESTINATION_ADDRESS=your_destination_address
```## Usage
Start the monitor:
```bash
npm start
```## Dependencies
- @mysten/sui.js: ^0.54.1
- bs58: ^5.0.0
- dotenv: ^16.4.7