Skip to main content

  1. Mint accounts uniquely represent a token on Solana and store its global metadata.
  2. Light mints are on-chain accounts like SPL mints, but the light token program sponsors the rent-exemption cost for you.

Get Started

createMintInterface is a unified interface that dispatches to different mint creation paths based on programId:
  • TOKEN_PROGRAM_ID or TOKEN_2022_PROGRAM_ID → delegates to SPL or T22 createMint
  • Otherwise it defaults to LIGHT_TOKEN_PROGRAM_ID → creates a light-token mint
You can use the same interface regardless of mint type.Compare to SPL:
Find the source code here.
1

Create Mint with Token Metadata

Install packages in your working directory:
Install the CLI globally:
In the code examples, use createRpc() without arguments for localnet.
The mintAuthority must be a Signer for light-mints but can be just a PublicKey for SPL/T22.

Create SPL Mint with Token Pool

Pass TOKEN_PROGRAM_ID to create a standard SPL mint with a token pool in one transaction. This enables compression for the mint.

Enable Existing SPL Mints with Light ATAs

Register a token pool for an existing SPL mint to enable compression. No mint authority required.

Next Steps

Learn how to mint tokens to light-token accounts.