Batch Closing and the Transaction Size Limit
Updated · 4 min read
A single Solana transaction can be at most 1232 bytes. Every account it touches adds a 32-byte address plus instruction data.
How many fit
With compute budget instructions and a fee transfer included, about 20 close instructions fit in one transaction. Going beyond the limit makes the transaction impossible to encode, and wallets reject it.
How RecycleTokens batches
Accounts are grouped into batches of 18 to leave a safety margin. When your wallet supports it, all batches are approved in a single prompt and then sent one after another, each confirmed independently.
Partial success
If one batch fails, the others still count. A new scan shows exactly which accounts remain.
Check your wallet for locked SOL
Scan any Solana address for empty token accounts and see exactly how much rent you can reclaim. Free to check, non-custodial to close.
Frequently asked questions
Do address lookup tables help?
They help when the same addresses repeat across transactions. Token accounts being closed are all different, so lookup tables add little here.
