- light-token follows the same API patterns like ATA
- Your users hold and receive the same tokens, just stored more efficiently.
| Creation Cost | SPL | light-token |
|---|---|---|
| Token Account | ~2,000,000 lamports | ~17,000 lamports |
What you will implement
| light-token | SPL Token | |
|---|---|---|
| Get/Create ATA | getOrCreateAtaInterface() | getOrCreateAssociatedTokenAccount() |
| Derive ATA | getAssociatedTokenAddressInterface() | getAssociatedTokenAddress() |
| Transfer | transferInterface() | transferChecked() |
| Get Balance | getAtaInterface() | getAccount() |
| Tx History | rpc.getSignaturesForOwnerInterface() | getSignaturesForAddress() |
| Exit to SPL | unwrap() | N/A |
Find devnet examples here https://github.com/Lightprotocol/light-token-toolkit.
Setup
Receive Payments
- Action
- Instruction
Compare to SPL
Compare to SPL
Send Payments
- Action
- Instruction
Compare to SPL
Compare to SPL
Show Balance
Compare to SPL
Compare to SPL
Transaction History
Token accounts are compressed when inactivegetSignaturesForAddressInterface(address) if you want address-specific rather than owner-wide history.
Compare to SPL
Compare to SPL
Unwrap to SPL
When users need SPL tokens (CEX withdrawal, legacy integration):- Action
- Instruction