- light-token follows the same API patterns like ATA
- Your users receives the same stablecoin, just stored more efficiently.
| Creation Cost | SPL | light-token |
|---|---|---|
| Token Account | ~2,000,000 lamports | ~17,000 lamports |
Get an overview to light-token’s here.
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/c-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
getSignaturesForAddressInterface(address) if you want address-specific rather than owner-wide history.
Compare to SPL
Compare to SPL
Unwrap to SPL
When users need vanilla SPL tokens (CEX withdrawal, legacy integration):- Action
- Instruction