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:
- Create a wallet.
- Get Alice's account which was created in the first guide.
- Get the account's balance.
- Mint 10 native tokens of the first ID.
- Rust
- Nodejs
- Python
sdk/examples/how_tos/native_tokens/mint.rs
loading...
bindings/nodejs/examples/how_tos/native_tokens/mint.ts
loading...
bindings/python/examples/how_tos/native_tokens/mint.py
loading...
Expected Output
Balance before minting: 90
Transaction sent: 0x6dbec7c73ef511c3945eda6265d3de29a4f572a3bd95e39221cff18135e18ca6
Block included: https://explorer.shimmer.network/testnet/block/0x7b677c0562d8b2a7fdc1fd6182bb6364af517d41ec38a9dab9b29a1c7422f574
Balance after minting: 100