Skip to main content

Mint Native Tokens

You may want to increase the circulating native token supply. To do so, you will need to call the Account.mint_native_token(token_id, mint_amount, options) function.

Code Example

The following example will:

  1. Create a wallet.
  2. Get Alice's account which was created in the first guide.
  3. Get the account's balance.
  4. Mint 10 native tokens of the first ID.
sdk/examples/how_tos/native_tokens/mint.rs
loading...

Expected Output

Balance before minting: 90
Transaction sent: 0x6dbec7c73ef511c3945eda6265d3de29a4f572a3bd95e39221cff18135e18ca6
Block included: https://explorer.shimmer.network/testnet/block/0x7b677c0562d8b2a7fdc1fd6182bb6364af517d41ec38a9dab9b29a1c7422f574
Balance after minting: 100