Expand description
§Light Compressed Token SDK
Low-level SDK for compressed token operations on Light Protocol.
This crate provides the core building blocks for working with compressed token accounts, including instruction builders for transfers, mints, and compress/decompress operations.
§Compressed Token Accounts
- are on Solana mainnet.
- are compressed accounts.
- can hold Light Mint and SPL Mint tokens.
- cost 5,000 lamports to create.
- are well suited for airdrops and reward distribution.
§Difference to Light-Token:
light-token: Solana account that holds token balances of light-mints, SPL or Token 22 mints. Compressed token: Compressed account storing token data. Rent-free, for storage and distribution.
§Features
v1- Enable v1 compressed token supportanchor- Enable Anchor framework integration
For full examples, see the Compressed Token Examples.
§Operations reference
| Operation | Docs guide | GitHub example |
|---|---|---|
| Create mint | create-compressed-token-accounts | example |
| Mint to | create-compressed-token-accounts | example |
| Transfer | create-compressed-token-accounts | example |
| Approve | create-compressed-token-accounts | example |
| Revoke | create-compressed-token-accounts | example |
| Compress | create-compressed-token-accounts | example |
| Compress SPL account | create-compressed-token-accounts | example |
| Decompress | create-compressed-token-accounts | example |
| Merge token accounts | create-compressed-token-accounts | example |
| Create token pool | create-compressed-token-accounts | example |
§Toolkit guides
§Modules
compressed_token- Core compressed token types and instruction builderserror- Error types for compressed token operationsutils- Utility functions and default account configurationsconstants- Program IDs and other constantsspl_interface- SPL interface PDA derivation utilities
Modules§
- compat
- Solana-compatible token types using
solana_pubkey::Pubkey. - compressed_
token - Compressed token account types and instruction builders.
- constants
- error
- spl_
interface - SPL interface PDA derivation utilities.
- utils
- Utility functions and default account configurations.