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:
- No Approve or SetAuthority instructions. Nothing gives a third party the right to spend your tokens.
- No transfer of your tokens to anyone.
A cleanup transaction does include a few other things, and you should expect them:
- A protocol fee: a small SOL transfer from your wallet to the fee recipient, taken from the rent you reclaim and shown before you sign.
- Burn instructions: only for burn-required accounts you selected. These destroy the tokens in those accounts.
- Harvest instructions: for Token-2022 accounts with withheld transfer fees that must be cleared before closing.
2. Red flags vs. green flags
Red flags (avoid)
- Asks for your seed phrase or private key. No legitimate dApp does.
- Requests unlimited token approvals over your USDC, SOL or other holdings. Reject immediately.
- Unclear previews showing funds leaving to an address you do not recognize. Cancel.
Green flags
- Positive simulation: your wallet shows an overall gain in SOL after the transaction.
- Non-custodial design: you sign every transaction and the rent returns to your own wallet.
- Standard instructions: the transaction uses standard SPL Token and system instructions you can inspect.
3. How to verify in Phantom or Solflare
- Open the wallet's estimated balance change.
- Confirm SOL shows a net gain (for example +0.042 SOL) after the fee.
- Confirm no token you want to keep shows a deduction. If you chose burn-required accounts, only those specific tokens should appear as decreasing.
- 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.

