Skip to main content

  1. Mint To creates new tokens of a mint and deposits them to a specified token account.
  2. Before we can mint any tokens, we need an initialized mint account (SPL, Token-2022 or Light) for which we hold the mint authority.

Get Started

mintToInterface mints tokens to token accounts in a single call.The function auto-detects the token program (SPL, Token-2022, or Light) from the mint address.Compare to SPL:
Find the source code here.
1

Mint Tokens to Light Token Account

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

Next Steps

Learn to use the transfer interface for light-token <> SPL token transfers