Developers / Token standards

Cosmos denoms: tokenfactory and CW20

Last reviewed 1 December 2026.

Information, not advice. This page describes official Cosmos Hub and CosmWasm documentation for issuing assets. It is not financial, legal, investment, or tax advice, and it is not a recommendation to issue or purchase a token. Module parameters differ by chain; always read the documentation for the chain you are actually using.

Safety: This site will never ask you to enter a seed phrase or mnemonic. Official gaiad / chain daemons and CosmWasm tooling sign with keys stored in a local keyring or hardware device you control.

On Cosmos SDK chains there is more than one “token” model. Confusing them is a common source of broken integrations.

  • A native denom is an asset in the bank module. The chain's native fee coin (for example uatom on the Hub) is one. Tokenfactory lets a permitted account create additional native denoms of the form factory/{creator}/{subdenom}.
  • A CW20 token is a CosmWasm contract that speaks the CW20 message interface. Balances live in that contract's state, not as a bank denom, unless a chain has an explicit bridge between the two.
  • IBC is a transport. A native denom can be sent to another IBC-connected chain and will appear there under an IBC denom (a hash of the path). That does not, by itself, issue a new asset. It represents the same asset, escrowed on the source chain. This page does not treat IBC receipt as an issuance method.

Which module a given chain actually runs, and with which capabilities, is a per-chain configuration. The detailed commands below follow Cosmos Hub official documentation for tokenfactory, and the cw-plus specification for CW20. Other chains may enable more or fewer tokenfactory messages, charge a different creation fee, or not ship the module at all.

Tokenfactory (native denoms)

Cosmos Hub documentation describes cosmos/tokenfactory as the module the Hub runs. Any account can create a denom. The creator becomes its admin.

On the Hub, official docs record these capability choices (other chains may differ):

  • Admins can set bank denom metadata (EnableSetMetadata).
  • The creation fee is paid to the community pool.
  • burn-from and force-transfer are not enabled on the Hub, even though the module CLI may still show those subcommands. The Hub rejects those messages.

Hub commands, from the official module page, use gaiad. A create looks like:

gaiad tx tokenfactory create-denom mytoken --from mykey \
  --gas auto --gas-adjustment 1.5 --gas-prices 0.005uatom

The resulting denom is factory/{creator-address}/mytoken. Later mint, burn, and metadata operations use that full denom string. Confirm creation and admin with the official queries:

gaiad q tokenfactory denoms-from-creator $(gaiad keys show mykey -a)
gaiad q tokenfactory denom-authority-metadata factory/cosmos1.../mytoken

Minting is in base units, to yourself or to another account:

gaiad tx tokenfactory mint 1000000factory/cosmos1.../mytoken --from mykey --gas auto --gas-adjustment 1.5 --gas-prices 0.005uatom

On the Hub, an admin can burn from its own balance. Official docs warn that a compromised admin key can still mint without limit and can change-admin to lock the original admin out. Suggested controls in that same official page: use a multisig as admin, grant a limited authz for MsgMint only, or transfer admin to the governance module account. change-admin is immediate and has no undo.

Creation-fee amounts and gas numbers are chain parameters. Official Hub docs document a creation fee and extra gas consume as of their review date; query q tokenfactory params on the chain you are using rather than copying a fee from memory or from this paragraph.

Once a factory denom exists, it is a bank denom. Wallets that already show native coins can show it once metadata is set (on chains that enable metadata). It can in principle be transferred over IBC like other native denoms; follow that chain's IBC documentation for the exact path.

CW20 (CosmWasm contracts)

CW20 is the CosmWasm fungible-token specification, maintained in the official cw-plus repository. The spec is loosely based on ERC-20, with deliberate differences. Amounts are Uint128 (JSON strings). Decimals are left to the UI.

A contract must implement the base interface:

  • Messages: Transfer{recipient, amount} (to an address; does not trigger recipient contract code), Send{contract, amount, msg} (to a contract that implements Receive), and Burn{amount}.
  • Queries: Balance{address} and TokenInfo{} (name, symbol, decimals, total_supply).

Send/Receive is how CW20 talks to other contracts. That is different from ERC-20's approve / transferFrom as the primary contract-to-contract path. Allowances exist as an optional extension, and the official spec prefers IncreaseAllowance / DecreaseAllowance to avoid the ERC-20 approve race.

Other official extensions include minting and marketing metadata. cw20-base is the reference contract that implements the base spec plus mintable behaviour and is designed to be deployed as-is or imported into a custom contract.

A typical official flow, at a high level:

  1. Confirm the target chain runs CosmWasm and documents a CW20 deployment path.
  2. Use a pinned cw20-base release, or a contract that implements the spec, and instantiate it with the name, symbol, decimals, initial balances, and minter settings the official instantiate message requires. Read those fields from the release you pin; they can change between versions.
  3. Instantiate on a testnet or local wasmd / chain devnet first.
  4. Query TokenInfo and Balance, then test Transfer and, if used, mint and allowance messages.
  5. If the design is a fixed supply, do not set a minter, or renounce minting in the way that release documents. Do not assume the Ethereum word “renounce” exists — read the contract.

CW20 tokens are not automatically visible as bank coins. Integrations must speak CW20 messages, or the chain must provide a documented converter. Do not advertise a CW20 contract as a “native denom.”

Which model to read first

If you need an asset that ordinary bank-module wallets and IBC already understand, read your chain's tokenfactory (or equivalent) docs first. If you need contract hooks on send, or you are building inside CosmWasm only, read CW20. They are not drop-in replacements for each other, and they are not ERC-20.

For building a chain that might include these modules, see Launch your own chain.

Scam red flags

  • A website or “airdrop tool” that asks for a Cosmos mnemonic to create a factory denom or to instantiate CW20.
  • A project that says supply is fixed while tokenfactory admin or a CW20 minter is still an ordinary key. On the Hub, official queries show the denom admin; for CW20, query the contract's minter / token info as the official spec defines.
  • Treating an IBC denom as a new independently minted token, or as proof of legitimacy.
  • Copy-pasted factory/... strings or contract addresses from chat, especially when the creator/admin is not the address the project publishes.
  • Instructions that use Hub capabilities (or Hub fees) on a different Cosmos chain without checking that chain's params and enabled messages. force-transfer or burn-from may exist in a CLI and still be rejected — or, on another chain, they may be enabled. Check that chain.

Read next

Token issuance overview · Launch your own chain · Tools

Sources