Skip to main content

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.0029 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

Payment Skill for Agents

Use the payments agent skill to add light-token payment support to your project:
npx skills add Lightprotocol/skills
For orchestration, install the general skill:
npx skills add https://zkcompression.com

Payment Flows

Payments Overview

Basic payment

Batch payments

Receive payments

Payment with memo

Get Balance and Transaction History

Verify Recipients Address

Configure Spend Permissions

Wrap and Unwrap to or from SPL / Token 2022

Nullifier PDA

Fee Abstraction

Gasless transactions

Signing

When using Privy Wallets

When using Wallet Adapter

Go to Production

Checklist

API Reference

Reference

SDK overview, Anchor constraints, and JSON RPC methods for Light Token and ZK Compression.

Solana to Light

Instruction-by-instruction mapping from SPL and Solana to Light Token.

SDK Reference

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

Client SDKs

@lightprotocol/stateless.js

TypeScript RPC client for Light Token and Compressed Accounts.

light-client

Rust RPC client for Light Token and ZK Compression.

@lightprotocol/compressed-token

TypeScript token operations for Light Token and Compressed Tokens.

light-token-client

Rust token operations for Light Token.

Program

light-sdk

Core SDK for on-chain programs.

light-sdk-macros

Procedural macros for Light accounts.

light-token

CPI instructions for Light Token program.

light-program-test

Local testing framework for programs.

Next Steps

Learn more in Frequently Answered Questions