Token Extensions

Token-2022 vs SPL Legacy: Rent Storage Requirements and Account Closing

Explore how Token-2022 extensions impact account sizing, rent deposits, and how modern incinerator tools must handle dual program accounts.

September 20265 min readAudited by Systems Engineering

1. Token-2022 Extension Overhead

Solana Token-2022 (Token Extensions) introduces advanced features like transfer fees, interest-bearing tokens, and confidential transfers. Because these extensions append metadata to the account, Token-2022 accounts often exceed the legacy 165 bytes, requiring larger rent-exempt deposits.

2. Dual Program ID Architecture

Legacy tokens live under TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA, while modern extension tokens live under TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb. Reclaim engines must query both program IDs in parallel to identify all closeable accounts.

3. Safe Account Closing

Closing a Token-2022 account requires referencing the correct program ID in the instruction. Solwitches detects both program types and packages the appropriate instruction for each account in the transaction batch.