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

Setup

Install packages in your working directory:
Install the CLI globally:
In the code examples, use createRpc() without arguments for localnet.
setup.ts

Query balance

getAtaInterface returns a unified balance aggregating Light Token (hot + cold), SPL, and Token 2022 sources in parsed.amount.
Find a full code example here.

Transaction history

Find a full code example here.
Query all transactions for an owner across both on-chain and compressed state:

Receive payments

Load cold accounts and prepare to receive.

Basic payment

Send a single token transfer.

Verify address

Validate recipient addresses before sending.

Didn’t find what you were looking for?

Reach out! Telegram | email | Discord