vacuum-sol 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,28 +4,106 @@
|
|
|
4
4
|
|
|
5
5
|
Vacuum is an automated rent-reclaim bot that monitors **operator-owned** token accounts and safely reclaims rent SOL when accounts are closed or have zero balance. Perfect for custodial services, development environments, and anyone managing their own Solana token accounts at scale.
|
|
6
6
|
|
|
7
|
-
](https://www.npmjs.com/package/vacuum-sol)
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## � Installation
|
|
14
|
+
|
|
15
|
+
### Install via npm (Recommended)
|
|
14
16
|
|
|
15
17
|
```bash
|
|
16
|
-
#
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
# Install globally
|
|
19
|
+
npm install -g vacuum-sol
|
|
20
|
+
|
|
21
|
+
# Verify installation
|
|
22
|
+
vacuum --version
|
|
23
|
+
vacuum --help
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Or clone from source
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
git clone https://github.com/Don-Vicks/vaccum.git
|
|
30
|
+
cd vaccum
|
|
19
31
|
npm install && npm run build
|
|
32
|
+
npm link # Make 'vacuum' command available globally
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 🚀 Quick Start
|
|
38
|
+
|
|
39
|
+
### 1. Initial Setup
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Create a configuration directory
|
|
43
|
+
mkdir -p ~/.vacuum
|
|
44
|
+
|
|
45
|
+
# Set up your environment variables
|
|
46
|
+
export SOLANA_RPC_URL=https://api.devnet.solana.com
|
|
47
|
+
export TREASURY_ADDRESS=<your-wallet-address>
|
|
48
|
+
export OPERATOR_KEYPAIR_PATH=~/.vacuum/operator-keypair.json
|
|
20
49
|
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
#
|
|
50
|
+
# Or create a .env file in your project directory
|
|
51
|
+
cat > .env << EOF
|
|
52
|
+
# Solana RPC Configuration
|
|
53
|
+
SOLANA_RPC_URL=https://api.devnet.solana.com
|
|
24
54
|
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
55
|
+
# Operator treasury address - rent will be reclaimed here
|
|
56
|
+
TREASURY_ADDRESS=<your-wallet-address>
|
|
57
|
+
|
|
58
|
+
# Path to operator keypair file (must have authority to close accounts)
|
|
59
|
+
OPERATOR_KEYPAIR_PATH=~/.vacuum/operator-keypair.json
|
|
60
|
+
|
|
61
|
+
# Kora Node Configuration (optional - for monitoring sponsored accounts)
|
|
62
|
+
KORA_NODE_URL=
|
|
63
|
+
|
|
64
|
+
# Safety Configuration
|
|
65
|
+
DRY_RUN=true
|
|
66
|
+
COOLDOWN_HOURS=24
|
|
67
|
+
MIN_INACTIVE_DAYS=7
|
|
68
|
+
|
|
69
|
+
# Telegram Bot (optional)
|
|
70
|
+
# Create bot via @BotFather on Telegram
|
|
71
|
+
TELEGRAM_BOT_TOKEN=
|
|
72
|
+
# Your personal chat ID (get via @userinfobot)
|
|
73
|
+
TELEGRAM_CHAT_ID=
|
|
74
|
+
|
|
75
|
+
# Database path
|
|
76
|
+
DB_PATH=./data/accounts.db
|
|
77
|
+
|
|
78
|
+
# Dashboard port (optional)
|
|
79
|
+
DASHBOARD_PORT=3333
|
|
80
|
+
EOF
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 2. Run Your First Scan
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Scan for accounts
|
|
87
|
+
vacuum scan
|
|
88
|
+
|
|
89
|
+
# Find reclaimable accounts
|
|
90
|
+
vacuum check --all
|
|
91
|
+
|
|
92
|
+
# Preview reclaim (safe, dry-run mode)
|
|
93
|
+
vacuum reclaim --dry-run
|
|
94
|
+
|
|
95
|
+
# Actually reclaim rent
|
|
96
|
+
vacuum reclaim --yes
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 3. View Reports
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Show summary
|
|
103
|
+
vacuum report
|
|
104
|
+
|
|
105
|
+
# Show history
|
|
106
|
+
vacuum report --history
|
|
29
107
|
```
|
|
30
108
|
|
|
31
109
|
---
|
|
@@ -156,6 +234,9 @@ SOLANA_RPC_URL=https://api.devnet.solana.com
|
|
|
156
234
|
TREASURY_ADDRESS=<your-wallet-address>
|
|
157
235
|
OPERATOR_KEYPAIR_PATH=./operator-keypair.json
|
|
158
236
|
|
|
237
|
+
# Optional - Kora Node
|
|
238
|
+
KORA_NODE_URL=
|
|
239
|
+
|
|
159
240
|
# Optional
|
|
160
241
|
DRY_RUN=true
|
|
161
242
|
COOLDOWN_HOURS=24
|
|
@@ -165,6 +246,7 @@ TELEGRAM_CHAT_ID=
|
|
|
165
246
|
|
|
166
247
|
# Database
|
|
167
248
|
DB_PATH=./data/accounts.db
|
|
249
|
+
DASHBOARD_PORT=3333
|
|
168
250
|
```
|
|
169
251
|
|
|
170
252
|
---
|
|
@@ -356,7 +438,7 @@ MIT License - see [LICENSE](LICENSE)
|
|
|
356
438
|
<div align="center">
|
|
357
439
|
<strong>Built with ❤️ for the Solana ecosystem</strong>
|
|
358
440
|
<br><br>
|
|
359
|
-
<a href="https://github.com/
|
|
360
|
-
<a href="https://
|
|
361
|
-
<a href="
|
|
441
|
+
<a href="https://github.com/Don-Vicks/vaccum">GitHub</a> •
|
|
442
|
+
<a href="https://www.npmjs.com/package/vacuum-sol">NPM</a> •
|
|
443
|
+
<a href="http://vaccum-bot.vercel.app">Website</a>
|
|
362
444
|
</div>
|