Skip to main content

Mint Accounts

Light-mint accounts represent a unique mint and optionally can store token-metadata. Functionally equivalent to SPL mints.
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.
View the guide to create associated token accounts.

Learn how the Light Token Program works

Quickstart

1

Installation

Install packages in your working directory:
Install the CLI globally:
2

Get Started

Payment Skill for Agents

Use the payments agent skill to add light-token payment support to your project:
For orchestration, install the general skill:

Payment Flows

Overview to Stablecoin Payments with Light Token

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