Overview
Complete overview to compressed tokens core features, setup guide and cookbook.
Compressed tokens provide full SPL token functionality without per-account rent cost.
100 Token Accounts
~ 0.2 SOL
~ 0.00004 SOL
5000x
Compressed token accounts store information about an individual's ownership of a specific token (mint). Different from regular token accounts, they don't require an Associated Token Account (ATA) per token holder.
For example, this simplifies token distribution, since you don't need to allocate a token account per recipient.
Compressed Tokens at a Glance
Rent-free tokens
Create token accounts without upfront rent exempt balance.
SPL Compatibility
Compatible with SPL tokens and Solana programs.
Wallet Support
Supported by leading wallets including Phantom and Backpack.
Start building
Developing with compressed tokens works similar SPL tokens and involves minimal setup:
Install dependencies
npm install --save-dev typescript tsx @types/node && \
npm install --save \
@lightprotocol/stateless.js \
@lightprotocol/compressed-token \
@solana/web3.js \
@solana/spl-tokenyarn add --dev typescript tsx @types/node && \
yarn add \
@lightprotocol/stateless.js \
@lightprotocol/compressed-token \
@solana/web3.js \
@solana/spl-tokenpnpm add --save-dev typescript tsx @types/node && \
pnpm add \
@lightprotocol/stateless.js \
@lightprotocol/compressed-token \
@solana/web3.js \
@solana/spl-tokenSet up your developer environment
Get started with our cookbook or advanced guides for implementations
Guides
Create new SPL mint with token pool for compression
Create compressed and learn difference to regular token accounts
Create new compressed tokens to existing mint
Move compressed tokens between compressed accounts
Convert SPL tokens between regular and compressed format
Compress complete SPL token accounts and reclaim rent afterwards
Consolidate multiple compressed accounts of the same mint into a single compressed account
Create token pool for compression for existing SPL mints
Approve or revoke delegates for compressed token accounts
Implementation Guides
Create an airdrop, with or without code
Create and transfer compressed tokens with Token-2022 extensions
Implement compressed token support in your wallet application
Examples
Demonstrates how to use @lightprotocol/stateless.js in a browser environment to interact with the ZK Compression API
Script to execute basic compression/decompression/transfers
Demo for time-locked airdrop with compressed tokens
Token distribution example implementation for airdrops, payments, and rewards
Next Steps
Get started with the first cookbook guide.
How to Create and Register a Mint Account for CompressionLast updated
Was this helpful?