4. Create your own Move coin
This tutorial covers how to make my own coin and mint them using 0x1::managed_coin module, and how to interact with the Move module.
Last updated
This tutorial covers how to make my own coin and mint them using 0x1::managed_coin module, and how to interact with the Move module.
Last updated
Call function and start creating a new coin on Initia.
TIP: On the entry function, signer is included in msg sender and is omitted on msg args.
A view function 0x1::coin::metadata
can be used to get metadata of a coin. You can also get the metadata by using sha3_256(creator+symbol+0xFE)
.
Now that we know the metadata address, let's mint coins.
Check the minted coins by querying the balances.
TIP: If creator is 0x1
, cosmos denom is equal to the symbol. If not, cosmos denom is equal to move/{metadata_address}
Call function and mint the tokens create on Step 1.
Metadata is the coins unique identity. To be more specific, it is or an address where 0x1::fungible_asset::Metadata
is saved. Fungible asset is using named object to generate deterministic address which is the form of sha3_256(creator+symbol+0xFE)
.