LARGE WALLETS AND BOTS
Thousands of empty accounts, without hundreds of signatures.
A trading-bot wallet can pile up thousands of empty token accounts. In a browser wallet that means hundreds of pop-ups to approve. Two ways around it: the Telegram bot, with nothing to install, or a script that runs on your own machine.
1. The Telegram bot (the easy way)
Open @sol_duster_bot, send the wallet's public address to see for free what is recoverable, then choose “Recover Now”. The bot closes the empty accounts 20 at a time and shows you the progress.
Know this before you use it: to sign on your behalf, the bot needs the wallet's private key. It is the only place where SolDuster uses a private key, and only if you choose this mode; the website never asks for it. The key is used for the duration of the recovery, it is neither stored nor logged, and your message is deleted from the chat. Still take the precaution the bot reminds you of: first move your SOL and valuable tokens to another wallet, leaving about 0.01 SOL for network fees.
Not willing to hand over a key? Use the script below: it never leaves your machine.
2. The script, on your own machine
Running a script with your private key is exactly what scammers ask for. Do not take our word for it: the file is 165 lines long, depends only on solders, and reads in ten minutes. It talks only to the RPC you give it. By default it only prints what it would do.
Download solduster_cli.py · Read the code
SHA-256 : 15cc4a039c0156b0d24bfc6706c93b343aefdb0a6a45c43fe4b7114f9111d9da
Usage
pip install solders
# dry run: prints the accounts, the amount, the fee
python3 solduster_cli.py --keypair ~/my-wallet.json
# close for real
python3 solduster_cli.py --keypair ~/my-wallet.json --yes
Options: --rpc URL (your own RPC is faster than the public one), --max N (close at most N accounts, handy for a first try). The key file is the Solana CLI format (JSON array of 64 numbers) or a base58 secret key.
What each transaction contains
Up to 20 CloseAccount instructions of the Token or Token-2022 program (the rent returns to your wallet), then one fee transfer to HtJ9i3BsmakoqAQXXU74zGvPibRpspXETrtP9gZXvqFe. Nothing else. Each transaction is simulated before it is sent and its Solscan link is printed.
Fee
10% of the rent recovered up to 1 SOL, 3% above. Example: 10 SOL recovered, 0.37 SOL fee. Prefer to pay nothing? spl-token close does the same for free, one account at a time.
Questions: support@solduster.com.