Skip to main content

Token Operations

XYZ Chain supports CW20 tokens - the CosmWasm standard for fungible tokens, similar to ERC-20 on Ethereum or SPL tokens on Solana.

What is CW20?

CW20 is a specification for fungible tokens on CosmWasm chains. It defines:
  • Token metadata (name, symbol, decimals)
  • Balance tracking
  • Transfer operations
  • Minting and burning
  • Allowances (approve/transferFrom)

Token Commands

Quick Start

1. Deploy the CW20 Base Contract

First, ensure the CW20 base contract is deployed on the chain:

2. Create a Token

3. Check Balance

4. Transfer Tokens

Token Properties

When creating a token, you define:

CW20 vs Native Tokens

Prerequisites

Before creating tokens:
  1. CW20 Code ID - The base contract must be deployed
  2. Sufficient Balance - Gas fees in uxyz
  3. Key Setup - A keypair in your keyring
Check CW20 is configured:
If not configured, see CW20 Setup.

Architecture

Each token is an instance of the CW20 base contract with unique:
  • Contract address
  • Name and symbol
  • Balances
  • Minter configuration

Use Cases

Governance Tokens

Create tokens for DAO voting and governance

Stablecoins

Issue wrapped stablecoins on XYZ Chain

Reward Tokens

Distribute rewards to users

Utility Tokens

Power in-app economies

Next Steps

Create Token

Deploy your first CW20 token

Mint Tokens

Mint additional supply

Transfer

Send tokens to others

Query

Check balances and info