Create your own token
Any account can create a token for its game:
{ "type": "create_token",
"symbol": "COINS", "name": "Game Coins", "decimals": 2,
"max_supply": "100000000", "faucet_amount": "50000", "faucet_cooldown": 600 }
Rules:
symbol: 3 to 10 characters ofA-Zand0-9, starting with a letter, and not already taken.decimals: 0 to 18.max_supply,faucet_amount,faucet_cooldownare optional. The cooldown defaults to 1800 blocks.- The creation fee is 100 GOLD, burned (
CREATE_TOKEN_FEE= 10000 base units). You need the GOLD first. - The creator becomes the token's issuer.
Mint and burn
mint {token, to, amount}: only the issuer, and never pastmax_supply.burn {token, amount}: any holder can destroy their own tokens.
Design advice
A capped supply (max_supply) makes a scarce token; a faucet makes an abundant one. A game can also create
tokens from inside its module (ctx.create_token, ctx.mint, ctx.burn) when it should control issuance.