Skip to main content
Light Token -> Light Token Account
  • Transfers tokens between Light Token accounts
SPL token -> Light Token Account
  • Transfers SPL tokens to Light Token accounts
  • SPL tokens are locked in interface PDA
  • Tokens are minted to Light Token account
Light Token -> SPL Account
  • Releases SPL tokens from interface PDA to SPL account
  • Burns tokens in source Light Token account
Install the agent skill:
See the AI tools guide for dedicated skills.
The transferInterface function transfers tokens between token accounts (SPL, Token 2022, or Light) in a single call.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.

Next Steps

Learn about Transfer Checked