Light token is a high-performance token standard that reduces the cost of mint and token accounts by 200x.
- All light mint and token accounts are on-chain accounts like SPL, but the light token program sponsors the rent-exemption cost for you.
- Light-token accounts can hold balances from any light, SPL, or Token-2022 mint.
- Light-mint accounts represent a unique mint and optionally can store token-metadata. Functionally equivalent to SPL mints.
|
Description |
| Payments |
All you need for wallet integrations and payment flows. Minimal API differences to SPL. |
| Streaming Tokens |
Stream mint events using Laserstream |
| Sign with Privy |
Light-token operations signed with Privy wallets (Node.js + React) |
| Sign with Wallet Adapter |
Sign light-token transactions with Wallet Adapter (React) |
| Gasless Transactions |
Abstract SOL fees so users never hold SOL. Set your application as the fee payer. Sponsor rent top-ups and transaction fees. |
| Token 2022 Extensions |
Create mints with Token 2022 extensions and register them for Light Token |
|
|
|
Description |
| create-mint |
Action |
Instruction |
Create a light-token mint with metadata |
| create-spl-mint |
Action |
Instruction |
Create an SPL mint with SPL interface PDA |
| create-t22-mint |
Action |
Instruction |
Create a Token 2022 mint with SPL interface PDA |
| create-spl-interface |
Action |
Instruction |
Register SPL interface PDA for an existing mint |
| create-ata |
Action |
Instruction |
Create an associated light-token account |
| create-ata-explicit-rent-sponsor |
Action |
|
Create an ATA with explicit rent sponsor |
| load-ata |
Action |
Instruction |
Load token accounts from light-token, compressed tokens, SPL/T22 to one unified balance |
| mint-to |
Action |
Instruction |
Mint tokens to a light-account |
| transfer-interface |
Action |
Instruction |
Transfer between light-token, T22, and SPL accounts |
| wrap |
Action |
Instruction |
Wrap SPL/T22 to light-token |
| unwrap |
Action |
Instruction |
Unwrap light-token to SPL/T22 |
| approve |
Action |
|
Approve delegate |
| revoke |
Action |
|
Revoke delegate |
| delegate-transfer |
Action |
|
Delegate transfers tokens on behalf of owner |
|
Description |
| escrow |
Peer-to-peer light-token swap with offer/accept flow |
| fundraiser |
Token fundraiser with target, deadline, and refunds |
| light-token-minter |
Create light-mints with metadata, mint tokens |
| token-swap |
AMM with liquidity pools and swaps (Anchor) |
| cp-swap-reference |
Fork of Raydium AMM that creates markets without paying rent-exemption |
| pinocchio-swap |
AMM with liquidity pools and swaps (Pinocchio) |
| create-and-transfer |
Create account via macro and transfer via CPI |
The instructions use pure CPI calls which you can combine with existing and / or light macros.
For existing programs, you can replace spl_token with light_token instructions as you need. The API is a superset of SPL-token so switching is straightforward.