Skip to main content

Best Practices

  • Clear UI Indicators — Provide clear visual distinctions between compressed and uncompressed SPL tokens
  • Transaction History — Provide detailed transaction histories for compressed tokens
  • Decompression and Compression — Provide a clear path for users to convert between compressed and uncompressed tokens when needed
Leading Solana Wallets like Phantom and Backpack already support compressed tokens.

Integration Steps

Display Compressed Token Balances

Get Transaction History

Send Compressed Tokens

send-compressed-tokens.ts

Advanced Integrations

Use these integrations to let users convert between regular and compressed format as needed.
This example converts compressed tokens to regular SPL format using CompressedTokenProgram.decompress().
This example converts regular SPL tokens to compressed format using CompressedTokenProgram.compress().

Common Errors

If getCompressedTokenBalancesByOwnerV2 returns empty:
  • Ensure the wallet has compressed tokens (not regular SPL tokens)
  • Verify you’re on the correct network (devnet/mainnet)

Next Steps

Take a look at other compressed token guides.