Burn Tokens
Thexyz token burn command permanently destroys tokens from your balance, reducing the total supply.
Usage
Arguments
| Argument | Description |
|---|---|
contract | Token contract address |
amount | Amount to burn (in smallest unit) |
Flags
| Flag | Description | Required |
|---|---|---|
--from | Your signing key | Yes |
--dry-run | Simulate only | No |
Examples
Basic Burn
Dry Run
Output
Successful burn:Verify Burn
Check balance and total supply after burning:Use Cases
Deflationary Mechanics
Reduce supply over time to increase scarcity
Token Buyback
Buy tokens from market and burn them
Error Correction
Burn accidentally minted tokens
Bridge Burns
Burn when bridging to another chain
Amount Calculation
Amount is in the token’s smallest unit. For 6 decimals:| Display | Amount (base) |
|---|---|
| 1 MTK | 1,000,000 |
| 0.5 MTK | 500,000 |
| 100 MTK | 100,000,000 |
Burn All Tokens
To burn your entire balance:Error Handling
| Error | Meaning | Solution |
|---|---|---|
| ”insufficient token balance” | Not enough tokens | Check balance first |
| ”contract not found” | Wrong contract address | Verify contract exists |
Check Balance Before Burn
Under the Hood
xyz token burn executes a MsgExecuteContract:
Burn vs BurnFrom
CW20 has two burn methods:| Method | Who Burns | Requires |
|---|---|---|
burn | Token holder | Just your tokens |
burn_from | Approved spender | Prior allowance |
xyz token burn command uses burn (burning your own tokens).
Troubleshooting
Insufficient balance
Insufficient balance
You can only burn tokens you own:
Zero amount
Zero amount
Amount must be greater than 0.