Skip to main content
When a market becomes inactive, its token accounts and related PDAs will be compressed automatically (cold storage). The state is cryptographically preserved on the Solana ledger. While compressed, pure on-chain lookups will return uninitialized. Your indexer should keep tracking, quoting, and routing markets even if the on-chain account shows is_initialized: false, is_compressed: true. To trade a cold market, the first client must prepend an idempotent decompress “warm up” instruction.
Find the source code here.
1

Warm up a cold market and trade

Prepend idempotent decompress instructions before your trade. loadAta returns null and createLoadAtaInstructions returns an empty array when the account is already hot, so this pattern is safe to use unconditionally.

Stream light-mint accounts

Toolkit to stream light-mints