Minting on Spark is unlocked immediately after your token announcement is confirmed on Bitcoin L1.

The mintTokens function lets you create new tokens on Spark — either to set the initial supply or to mint more over time as needed.

What you need to know

  • Only the original issuer wallet can mint
  • Tokens are minted to the issuer’s Spark address
  • The amount must be in base units
  • Minting is an instant, final Spark transaction.

Prerequisites

  • An LRC-20 token announced and confirmed on Bitcoin L1
  • Issuer’s wallet used in the original announcement

Mint tokens

Minting only requires an amount. Here’s how to do it:

const transactionId = await wallet.mintTokens(1000000n);

console.log("Spark Transaction ID:" + transactionId);
  • Minting is limited by the max supply if one was defined during the token announcement.
  • Amounts must be specified in base units, accounting for your token’s decimals (e.g. 1.5 tokens = 1_500_000 for 6 decimals).

Where are tokens minted to?

When you mint tokens on Spark, they’re credited directly to your issuer’s Spark address derived from:

sp + <token_public_key>

This address is bech32m-encoded and generated automatically when you create your wallet. All minted supply is sent here by default. You can’t specify a different destination when minting — transfers must happen in a separate step.

Next Steps

After minting your tokens, you can send and receive them on Spark.