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:- CW20 Code ID - The base contract must be deployed
- Sufficient Balance - Gas fees in uxyz
- Key Setup - A keypair in your keyring
Architecture
- 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