Compressed Tokens are supported by leading Solana wallets such as Phantom and Backpack.
| Creation | Solana | Compressed |
|---|---|---|
| Token Account | ~2,000,000 lamports | 5,000 lamports |
- Compressed token accounts store token balance, owner, and other information of tokens like SPL and light-tokens.
- Compressed token accounts are rent-free.
- Any light-token or SPL token can be compressed/decompressed at will.
Recommended Usage of Compressed Tokens
Token Distribution
Distribute tokens without paying upfront rent per recipient.
Create an Airdrop
Store SPL-token accounts rent-free
Compress existing SPL-token accounts to save rent costs for your users.
Compress SPL Token Accounts
Get Started
Installation & Setup
Installation & Setup
1
Basic Guides
| Guide | Description |
|---|---|
| Create Compressed Token Accounts | Create compressed and learn difference to regular token accounts |
| Mint Compressed Tokens | Create new compressed tokens to existing mint |
| Transfer Compressed Tokens | Move compressed tokens between compressed accounts |
| Decompress and Compress Tokens | Convert SPL tokens between regular and compressed format |
| Compress Complete SPL Token Accounts | Compress complete SPL token accounts and reclaim rent afterwards |
| Create a Mint with Token Pool for Compression | Create new SPL mint with token pool for compression |
| Create Token Pools for Mint Accounts | Create token pool for compression for existing SPL mints |
| Merge Compressed Accounts | Consolidate multiple compressed accounts of the same mint into one |
| Approve and Revoke Delegate Authority | Approve or revoke delegates for compressed token accounts |
2
Advanced Guides
| Guide | Description |
|---|---|
| Combine Instructions in One Transaction | Execute multiple token instructions within a single transaction |
| Create an Airdrop without Claim | Create an airdrop that appears directly in recipients’ wallets (with or without code) |
| Example Airdrop with Claim | Demo for time-locked airdrop with compressed tokens |
| Add Wallet Support for Compressed Tokens | Add compressed token support in your wallet application |
| Use Token-2022 with Compression | Create compressed Token-2022 mints with metadata and other extensions |
| Example Web Client | Demonstrates how to use @lightprotocol/stateless.js in a browser environment to interact with ZK Compression |
| Example Node.js Client | Script to execute basic compression/decompression/transfers |