代币工厂模块教程 (Tokenfactory Module Tutorial)

This page gives examples of basic tokenfactory module cli commands to mint sdk.Coins on Sei.

本页提供了在 Sei 上铸币 sdk.Coins 的基本 tokenfactory 模块的 cli 命令示例。

For descriptions about each tokenfactory module message types visit https://github.com/sei-protocol/sei-chain/tree/master/x/tokenfactory

有关每个 tokenfactory 模块消息类型的描述,请访问https://github.com/sei-protocol/sei-chain/tree/master/x/tokenfactory

The tokenfactory module allows any account to create a new token with the name factory/<creator address>/<subdenom> in a permissionless fashion.

tokenfactory(代币工厂) 模块允许任何帐户以无许可方式创建一个名为 factory/<creator address>/<subdenom> 的新代币。

创建一个 Denom (Creating a Denom)

seid tx tokenfactory create-denom <subdenom> --from <account_name> --chain-id <chain_id>

This will create a new coin of the form factory/<creator address>/<subdenom>

这将从factory/<creator address>/<subdenom>创建一个新代币

铸币 (Minting)

NOTE: Minting is only possible from the creator address account

注意:铸币只能通过创建者地址帐户进行

seid tx tokenfactory mint <amount><denomination> --from <account_name> --chain-id <chain_id>

<amount><denomination> by example includes 100sei

<amount><denomination> 该示例包含 100sei

Once minted, consider a bank send to send the tokens to another address

铸造后,考虑使用“银行发送”将代币发送到另一个地址

燃烧 (Burning)

NOTE: Burning is only possible from the creator address account

注意:只能从创建者地址帐户进行燃烧

seid tx tokenfactory burn <amount><denomination> --from <account_name> --chain-id <chain_id>

最后更新于