compressed-token
Installation
SKILL.md
Compressed token client
Build token applications with @lightprotocol/compressed-token (TypeScript). Compressed token accounts are always rent-free. The SPL mint and interface PDA still pay rent, but each holder's compressed token account costs a fraction of an SPL account.
| Creation cost | SPL | Compressed |
|---|---|---|
| Token account | ~2,000,000 lamports | ~5,000 lamports |
Compressed token accounts store balance, owner, mint, and delegate like SPL token accounts. They require no associated token account (ATA) and no rent-exempt balance, and convert to and from SPL tokens at any time with compress() and decompress(). Wallets like Phantom and Backpack display them alongside SPL tokens.
When to use compressed tokens
- Token distribution and airdrops without paying up-front rent per recipient
- Sending Payments, Payroll, and similar flow etc.
- Storing token balances rent-free
- Token-2022 mints with metadata and other supported extensions