Skip to main content
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.

Wrap from SPL

Find a full code example here.

Unwrap to SPL

Find a full code example here.
Unwrap moves the token balance from a Light Token associated token account to an SPL associated token account. Use this to compose with applications that do not yet support Light Token.

Basic payment

Send a single token transfer.

Gasless transactions

Abstract SOL fees from the user.

Verify payments

Query balances and transaction history.

Didn’t find what you were looking for?

Reach out! Telegram | email | Discord