☰
← All posts

Is Solana Wallet Cleanup Safe? A Security Deep-Dive

2026-11-05 · 2 min read

securitywallet safetySolana

With wallet-drainer scripts circulating, you are right to be careful about connecting to new dApps. When using Graveyard Protocol to close empty accounts, you might ask: can closing an account drain my wallet? Here is how it works and how to verify it yourself.

1. What the transaction does

Closing a token account uses the SPL Token program's CloseAccount instruction:

Your wallet ---> CloseAccount(target: empty token account)
                  |
                  v
          SPL Token program
                  |- 1. checks the token balance is exactly 0
                  |- 2. closes the account
                  '- 3. sends the rent deposit ---> your wallet

What is absent matters:

A cleanup transaction does include a few other things, and you should expect them:

2. Red flags vs. green flags

Red flags (avoid)

Green flags

3. How to verify in Phantom or Solflare

  1. Open the wallet's estimated balance change.
  2. Confirm SOL shows a net gain (for example +0.042 SOL) after the fee.
  3. Confirm no token you want to keep shows a deduction. If you chose burn-required accounts, only those specific tokens should appear as decreasing.
  4. Read every instruction listed. If anything looks unfamiliar, reject it.

Graveyard Protocol is designed to produce clear, simulated transactions you can check yourself. See the rent reclaim guide for the full workflow.

Keep Reading

Ready to Reclaim Your SOL?

Scan your wallet, close empty token accounts and earn $GHOST. Non-custodial, and you approve every transaction.