Skip to main content
  1. Light-mints and token accounts are equivalent to SPL mints and tokens.
  2. The key difference is light-mint and token accounts do not require you to pay rent-exemption upon creation.
  3. Light token accounts are interoperable with SPL and Token 2022 mints.

Creation Cost

SPLLight
Mint Account~1,500,000 lamports15,000 lamports
Token Account~2,000,000 lamports~11,000 lamports

CU Performance

Light Token CUSPL-Token CU
ATA Creation4,34814,194
Transfer (base path)3124,645
Transfer (rent-free hot path)1,8854,645

Mint Accounts

Uniquely represent a token and store its global metadata. Light-mints are compressed accounts and rent-free.

Token Accounts

Each light-token account can hold units of one light, SPL, or Token 2022 mint. Custom rent config reduces account creation cost.
If you simply want to distribute tokens, please refer to this page.

Quickstart

1

Installation

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

Integration Toolkits

for Stablecoin PaymentsProcess payments and transfers using light-token
for WalletsAllow your users to store and swap tokens more efficiently
for Streaming MintsStream light-mint accounts
for Indexing TokensIndex light-token accounts

Cookbook

TypeScript ClientRust ClientProgram Guide
Create MintCreate light-mints with token metadataxxx
Create ATACreate associated light-token accountsxxx
Create Token AccountCreate light-token accountsxx
Mint ToMint tokens to light-token accountsxxx
Close Token AccountClose and reclaim rentxx
TransferTransfer between light-token and SPL accountsxxx
Wrap & UnwrapConvert between SPL/T22 and light-tokenx

Next Steps

Explore Frequently Answered Questions