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

Get Started

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 how to close light-token accounts