Skip to main content
SPLLight
Get AccountgetAccount()getAtaInterface()
Use the payments agent skill to add light-token payment support to your project:
For orchestration, install the general skill:

Verification flow

Before sending a payment:
  1. Check if the address is on-curve (wallet) or off-curve (PDA).
  2. If the address has an on-chain account, check the account owner and type.
  3. For Light Token, derive the associated token account to verify it matches the expected mint.
Use getAssociatedTokenAddressInterface() instead of SPL’s getAssociatedTokenAddressSync() to derive Light Token associated token account addresses. The derivation uses the Light Token Program ID.
When you send a payment with transferInterface() or createTransferInterfaceInstructions(), the SDK automatically creates the recipient’s associated token account if it doesn’t exist. Address verification is a safety check, not a prerequisite.

Basic payment

Send a single token transfer.

Receive payments

Load cold accounts and prepare to receive.

Verify payments

Query balances and transaction history.

Didn’t find what you were looking for?

Reach out! Telegram | email | Discord