Tokenfactory
This page gives examples of basic tokenfactory module cli commands to mint sdk.Coins on Gameluk.
For descriptions about each tokenfactory module message types visit the documentation.
The tokenfactory module allows any account to create a new token with the name factory/${CREATOR_ADDRESS}/${SUBDENOM} in a permissionless fashion.
See the tutorial at the end of this page for an example sdk.Coin creation using the tokenfactory module.
For more details on how to interact with tokenfactory module via wasm please reference the gameluk-cosmwasm package and its associated Tokenfactory bindings.
Creating a Denom
gameid tx tokenfactory create-denom $SUBDENOM --from $ACCOUNT --chain-id $CHAIN_IDThis will create a new coin of the form factory/${CREATOR_ADDRESS}/${SUBDENOM}
Minting
NOTE: Minting is only possible from the creator address account
gameid tx tokenfactory mint $AMOUNT --from $ACCOUNT --chain-id $CHAIN_ID$AMOUNT for example includes 100game
Once minted, consider a bank send to send the tokens to another address
Burning
NOTE: Burning is only possible from the creator address account
gameid tx tokenfactory burn $AMOUNT --from $ACCOUNT --chain-id $CHAIN_IDLast updated