Skip to main content
Light Token -> Light Token Account
  • Transfers tokens between Light Token accounts
Token 2022 / SPL token -> Light Token Account
  • Transfers SPL tokens to Light Token accounts
  • SPL / Token 2022 tokens are locked in interface PDA
  • Tokens are minted to Light Token account
Light Token -> SPL / Token 2022 Account
  • Releases SPL / Token 2022 tokens from interface PDA to SPL account
  • Burns tokens in source Light Token account
Install or view dedicated agent skills.
Install orchestrator agent skill or view skill.md:
The transferInterface function transfers tokens between token accounts (SPL, Token 2022, or Light) in a single call and checks decimals.Compare to SPL:
Find the source code here.
1

Transfer Interface

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

Advanced: Explicit Destination Account

For PDA destinations or program-owned accounts where you need to specify the exact destination token account, use transferToAccountInterface. This is an edge case; most transfers should use transferInterface with a wallet address.

Wrap and unwrap

Payments overview


Didn’t find what you were looking for?

Reach out! Telegram | email | Discord