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.
Install or view dedicated agent skills.
Install orchestrator agent skill or view skill.md:
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.

Transfer interface

Approve and revoke


Didn’t find what you were looking for?

Reach out! Telegram | email | Discord