Skip to main content
Note: This page is for the new Light Token Program Beta.
For legacy compressed tokens, please go here.

Mint Accounts

Light-mint accounts represent a unique mint and optionally can store token-metadata. Functionally equivalent to SPL mints.
Creation CostLight-TokenSPL-Token
Mint Account0.00001 SOL0.0015 SOL
View the guide to create Light Token mints, or enable interoperability for existing SPL and Token 2022 mints.

Token Accounts

Light-token accounts can hold balances from any light, SPL, or Token-2022 mint, without the need to pay rent-exemption.
Creation CostLight-TokenSPL-Token
Token Account0.00001 SOL0.002 SOL
View the guide to create associated token accounts.
CU PerformanceLight-TokenSPL-Token
ATA Creation4,34814,194
Transfer3124,645
Transfer (rent-free)1,8854,645

Learn how the Light Token Program works

Quickstart

1

Installation

Install packages in your working directory:
npm install @lightprotocol/stateless.js@beta \
            @lightprotocol/compressed-token@beta
Install the CLI globally:
npm install -g @lightprotocol/zk-compression-cli@beta
2

Get Started

Cookbook

Create MintCreate light-mints with token metadata
Create ATACreate associated light-token accounts
Create Token AccountCreate light-token accounts
Mint ToMint tokens to light-token accounts
Close Token AccountClose token account to reclaim remaining lamports
TransferTransfer between Light Token, SPL and Token 2022 accounts
Transfer CheckedTransfer between Light Token accounts with decimals verification
BurnBurn tokens from light-token accounts
Freeze & ThawFreeze and thaw light-token accounts
Approve & RevokeDelegate and revoke token authority
Wrap & UnwrapConvert between SPL/Token 2022 and light-token
Load ATALoad cold light-token accounts to hot balance for transfers in one instruction

Examples

Client

ToolkitsPayments, wallets, Privy integration, SPL-to-Light transfer
TypeScriptActions and instructions for all token operations
RustActions and instructions for all token operations

Program

ExamplesAMM reference, CPI create-and-transfer, Pinocchio swap
MacrosCounter PDA, ATA, mint, and token account creation
InstructionsAll CPI instructions: approve, burn, close, freeze, mint-to, transfer, and more

API Reference

SDK Reference

Structs, types, and generated docs. TypeScript and Rust client SDKs, plus program SDKs (light-sdk, light-token, macros).

Client SDKs

Program

Next Steps

Explore Frequently Answered Questions