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~17,000 lamports

CU Performance

light-token CUSPL-token CUp-token CU
ATA Creation4,34814,19414,194
Transfer (base path)3124,64579
Transfer (rent-free hot path)1,8854,64579

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.

Start building

1

Install dependencies

npm install @lightprotocol/compressed-token \
            @lightprotocol/stateless.js
2

Set up developer environment

import { createRpc } from "@lightprotocol/stateless.js";

import {
  getOrCreateAtaInterface,
  getAtaInterface,
  getAssociatedTokenAddressInterface,
  transferInterface,
  unwrap,
} from "@lightprotocol/compressed-token/unified";

const rpc = createRpc(RPC_ENDPOINT);

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

Mint Accounts

Create Mint AccountProgram and client guide to create light-mints with token metadata
Mint TokensMint tokens to light-token accounts

Token Accounts

Next Steps

Create light-token accounts