← All guides
· 4 min read

Token-2022 vs Token Program: Recovering Excess SOL from Each

Solana has two token standards: the classic Token Program and the newer Token-2022. If you're checking a mint for recoverable SOL, it helps to know which one you're dealing with — though UnbrickSOL detects it for you automatically.

The classic Token Program

The original SPL Token Program uses fixed-size mint accounts (82 bytes). Their rent-exempt minimum is the same for every mint, which makes the recoverable-excess calculation straightforward. Recovery uses the SIMD-0266 withdraw_excess_lamports path.

Token-2022

Token-2022 supports extensions (transfer fees, metadata, and more), so its mint accounts can be larger and vary in size. That means a higher rent-exempt minimum, but the same principle applies: anything above that minimum is recoverable by an authorised signer. Token-2022 has supported withdrawing excess lamports natively.

How to tell — and why it doesn't matter much

You can tell them apart by the mint account's owner program, but you don't need to. When you scan a mint, UnbrickSOL reads the owning program, computes the correct rent-exempt minimum for that account's exact size, and builds the right recovery path — classic or Token-2022, active authority or renounced keypair.

Check your mint in seconds

Paste a mint address, see the exact recoverable amount, and decide.

Scan a mint →