☰
← All posts

How to Close Unused SPL Token Accounts Safely

2026-11-03 · 1 min read

SPL tokensclose accountsdust

Active trading on Solana is fast and cheap, but it leaves behind dozens of empty SPL (Solana Program Library) token accounts. They clutter your wallet and lock away SOL. This guide shows how to identify and close them without risking active assets.

1. What is an SPL token account?

On Ethereum your address holds ERC-20 balances directly. On Solana your wallet address does not hold tokens. It owns child accounts, each dedicated to one token mint.

Main wallet (owner)
  |- SOL balance (native)
  |- USDC token account (ATA 1)
  |- BONK token account (ATA 2)
  |- Empty token account (ATA 3)  ---> 0 balance, rent trapped

Even after you sell all your BONK, its account stays open on chain.

2. Zero balance vs. dust

Important: you cannot close an account that still holds tokens. The dust must first be burned or transferred out.

3. Manual closing vs. automated sweeping

Manual: CLI

With the SPL Token CLI:

spl-token close --address <TOKEN_ACCOUNT_ADDRESS>

The drawback is that you need command-line skills and handle accounts one by one. See spl-token vs gp-cli for a full comparison.

Automated: Graveyard Protocol

4. Best practices for wallet hygiene

Clean your wallet with Graveyard Protocol to keep your portfolio organized and your SOL liquid.

Keep Reading

Ready to Reclaim Your SOL?

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