Create Token
Deploy a new CW20 token on XYZ Chain with thexyz token create command.
Setup
Before creating tokens, ensure the CW20 base contract is deployed.Deploy CW20 Base Contract
Expected Output
Expected Output
Configure Code ID
Create a Token
Required Flags
Optional Flags
Examples
Basic Token
Token with Initial Supply
Fixed Supply Token
Token with Different Minter
Dry Run
Simulate token creation without broadcasting:Output
Successful creation returns:Save the contract address! You’ll need it for all future operations (mint, transfer, etc.).
Track Your Token
Add the token to your configuration for balance queries:Decimals Guide
Thedecimals field determines the smallest unit:
Error Handling
The CLI provides user-friendly error messages:Under the Hood
xyz token create executes a MsgInstantiateContract:
Next Steps
Mint Tokens
Create additional supply
Transfer Tokens
Send tokens to others