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 creator wallet can mint
- Tokens are minted directly to the creator’s Spark address
- The amount must be in base units
- Minting is a single, instant transaction
Mint tokens
Minting only requires an amount. Here’s how to do it:- Minting is limited by the max supply if one was defined during the token creation.
- Amounts must be specified in base units, accounting for your token’s decimals (e.g. 1.5 tokens = 1_500_000 for 6 decimals).