SOLSTACKDocs

Tools

Wallet Cleaner

Clean a batch of throwaway wallets at once: paste their private keys, close every empty token account, and sweep the SOL that's left to one address.

Step by step

  1. Step 1Paste private keysOne per line — base58 or the JSON array solana-keygen writes. Up to 200 wallets.
  2. Step 2ScanEach wallet's SOL balance, token accounts and empty accounts.
  3. Step 3Choose sweepOptionally send each wallet's remaining SOL to one destination.
  4. Step 4Wallets sign for themselvesNo wallet popup — each pasted key signs its own transactions in your browser.
  5. Step 5ReportPer-wallet status and signatures, exportable as CSV.

Who it's for

Bundle wallets after a launch, bot wallets, old test keys — any set of wallets you control by key and want to empty. Rent Reclaim does the same for the wallet you have connected; this does it for dozens at once.

What it does to each wallet

Closes every token account with a zero balance, which returns ~0.002 SOL of rent per account to that wallet. With sweep on, it then sends everything the wallet holds, minus the network fee for that last transaction, to the destination you chose. Wallets with no SOL to pay a fee, or nothing to close, are listed and skipped.

Your keys

Keys are parsed in memory in your browser to sign each wallet's own transactions. They are never stored, never sent to Solstack, and Clear wipes them from the page. Treat any wallet whose key you paste into a browser as disposable.

Cost

Free. Each wallet pays its own network fee (about 0.000005 SOL per transaction), which is far less than the rent it gets back.

FAQ

Is it safe to paste private keys here?

They're parsed in memory in your browser, used to sign each wallet's own transactions, and never stored or sent anywhere — Clear wipes them. That said, any key pasted into a browser should belong to a wallet you consider disposable. Never paste your main wallet.

What gets closed?

Only token accounts with a zero balance. Accounts holding tokens are left alone. If a wallet later receives that token again, a fresh account is created automatically.

Do I need to connect a wallet?

No. Each pasted wallet is its own fee payer and signer, so there's no popup and no connected wallet involved.

What does sweep do?

After the accounts are closed, it sends each wallet's remaining SOL — including the rent just reclaimed — to one destination address, keeping only the network fee for that last transaction.

Why was a wallet skipped?

Either it had nothing to close and nothing to sweep, or it had no SOL to pay the network fee for its own transaction. Send it a few thousand lamports and run again.

How many wallets at once?

Up to 200 per run. A few are processed in parallel; large batches take a minute or two.

NextStake SOL