Skip to main content
  1. 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.
  2. Your users receive the same stablecoin, just stored more efficiently.

What you will implement

SPLLight
Get/Create ATAgetOrCreateAssociatedTokenAccount()getOrCreateAtaInterface()
Derive ATAgetAssociatedTokenAddress()getAssociatedTokenAddressInterface()
TransfertransferChecked()transferInterface()
Get BalancegetAccount()getAtaInterface()
Tx HistorygetSignaturesForAddress()rpc.getSignaturesForOwnerInterface()
Entry from SPLN/Awrap()
Exit to SPLN/Aunwrap()
Find full code examples here.

Setup

Receive Payments

Send Payments

To ensure your recipient’s ATA exists before transferring:

Show Balance

Transaction History

Use getSignaturesForAddressInterface(address) if you want address-specific rather than owner-wide history.

Wrap from SPL

When users deposit from a CEX or legacy integration:

Unwrap to SPL

When users need SPL tokens (CEX withdrawal, legacy integration):