Skip to content

How to close empty token accounts on Solana

Short answer: An empty token account is one with a zero token balance. Closing it is a single CloseAccount instruction signed by the owner; the rent goes to the address you choose (your wallet). thedark batches up to ~20 per transaction.

Steps

  1. Find the empty accounts. thedark lists every zero-balance account across the SPL Token and Token-2022 programs.
  2. Batch them. Closes are packed ~20 per transaction to keep network fees tiny.
  3. Sign once per batch. Approve each batch in your wallet; rent returns immediately.

Why wallets leave them behind

Most wallets and trading bots open a token account when you buy and never close it when you sell, because closing costs a separate instruction. Over months, hundreds pile up.

Closing in bulk

A Solana transaction is limited to 1,232 bytes. Each close adds one account key and a small instruction, so roughly 20 fit in one transaction alongside the fee transfers. thedark measures the real serialized size and splits automatically.

Do I lose anything?

No. An empty account holds no tokens. If you trade that token again, a new account is created automatically.

See how much SOL your wallet is hiding

Free, read-only scan. No wallet connection.

Scan your wallet