- The Light-token API matches the SPL-token API almost entirely, and extends their functionality to include the light token program in addition to the SPL-token and Token-2022 programs.
- Your users hold and receive tokens of the same mints, just stored more efficiently.
| Creation Cost | SPL | Light-token |
|---|---|---|
| Token Account | ~2,000,000 lamports | ~11,000 lamports |
What you will implement
| SPL | Light | |
|---|---|---|
| Receive | getOrCreateAssociatedTokenAccount() | createLoadAtaInstructions() / loadAta() |
| Transfer | createTransferInstruction() | createTransferInterfaceInstructions() / transferInterface() |
| Get Balance | getAccount() | getAtaInterface() |
| Tx History | getSignaturesForAddress() | rpc.getSignaturesForOwnerInterface() |
| Wrap from SPL | N/A | wrap() / createWrapInstruction() |
| Unwrap to SPL | N/A | createUnwrapInstructions() / unwrap() |
Find full runnable code examples
here.
Agent skill
Agent skill
Use the payments-and-wallets agent skill to add light-token payment support to your project:For orchestration, install the general skill:
- Claude Code
- Cursor
- Any Agent
Add the marketplace and install:
- Guide
- AI Prompt
Setup
rpc, payer, mint, owner, recipient, and amount are defined.
See the full examples for runnable setup.About loading: Light Token accounts reduce account rent ~200x by auto-compressing inactive
accounts. Before any action, the SDK detects cold balances and adds
instructions to load them. This almost always fits in a single
atomic transaction with your regular transfer. APIs return
TransactionInstruction[][] so the same
loop handles the rare multi-transaction case automatically.Receive Payments
Find a full code example here.
- Instruction
- Action
Compare to SPL
Compare to SPL
Send Payments
Find a full code example: instruction | action.
- Instruction
- Action
Compare to SPL
Compare to SPL
Show Balance
Find a full code example here.
Compare to SPL
Compare to SPL
Transaction History
Find a full code example here.
getSignaturesForAddressInterface(address) if you want address-specific rather than owner-wide history.Compare to SPL
Compare to SPL
Wrap from SPL
Wrap tokens from SPL/Token-2022 accounts to light-token ATA.Find a full code example here.
- Instruction
- Action
Unwrap to SPL
Unwrap moves the token balance from a light-token account to a SPL-token account. Use this to compose with applications that do not yet support light-token.Find a full code example here.
- Instruction
- Action