Skip to main content

Mint Tokens

The xyz token mint command creates new tokens and sends them to a specified address. Only the designated minter can mint tokens.

Usage

Arguments

Flags

Examples

Mint to Yourself

Mint to Another Address

Dry Run

Output:

Output

Successful mint:

Minter Authorization

Only the designated minter can mint tokens:
Output:

Error: Not the Minter

Mint Caps

If the token has a cap, minting beyond it fails:
Check current supply vs cap:

Amount Calculation

The amount is in the smallest unit (base amount). For a token with 6 decimals: Example: Mint 1,000 tokens:

Batch Minting

For multiple recipients, run multiple commands:
Or script it:

Under the Hood

xyz token mint executes a MsgExecuteContract:

Troubleshooting

You’re not the designated minter. Check:
The token has a maximum supply. Check:
Verify the contract address: