Make your own token
Create a token on Dznye Chain for game gold, loyalty points, tickets or rewards: choose a name and symbol, how many exist, and an optional hard limit.
A token is anything you want people to be able to hold and send: game gold, loyalty points, event tickets, reward points, a membership, a collectible. Making one takes a minute and costs 1 DZY, which goes to the shared treasury (the welcome fund does not cover this one).
What you decide
| Setting | What it means | Rules |
|---|---|---|
| Symbol | The short code people see, like GOLD. | 2 to 10 capital letters or digits. DZY is taken. |
| Name | The full name, like "Game gold". | Up to 40 characters. |
| Decimals | How small a piece can be. 0 means whole numbers only. | 0 to 8. Use 0 for tickets and items, 2 for money-like tokens. |
| Made now | How many you create for yourself right away. | Can be 0 if you will issue later. |
| Fixed or not | Fixed means nobody, you included, can ever make more. | A fixed token needs a starting amount. |
| Hard limit | The most that can ever exist, enforced by the chain even against you. | Optional. Not for fixed tokens. |
Make it in the wallet
- Open wallet.dznye.com and open More.
- Fill in Make a token: symbol, name, decimals, the amount you want now, and any limit.
- Press Sign and make it. You need at least 1 DZY in the account.
Your token gets an id, 17 characters starting with a. You can find it in the explorer under Tokens, and on the first line of its page.
Issue more later
If the token is not fixed, only you (its maker) can issue more, and you must give a short public reason. This is written on the chain for everyone to read. If you set a hard limit, the chain refuses anything past it, so your promise to your community is enforced by the system, not by trust.
Examples
- Game gold. Symbol
GOLD, 2 decimals, not fixed, no limit. Your game server issues gold as players earn it. - Concert tickets. Symbol
TICKET, 0 decimals, fixed at 500. Each ticket is one whole token you can send or trade. - Loyalty points. Symbol
PTS, 0 decimals, not fixed. Issue points for purchases and let people trade them. - A single collectible. 0 decimals, fixed at 1. Only one will ever exist.
Sending and holding
Tokens are sent the same way as DZY: choose the token in Send. People only see a token in their balance once they hold some. Tokens can be traded on the market for DZY or any other token.
Burning
Anyone can destroy their own units of a token. DZY is the exception: "burning" DZY gives it to the treasury, because the chain never destroys DZY.
Tokens that make themselves
A contract can make and issue its own token with rules that nobody, not even its author, can bend. A shop contract, for example, can sell tickets until its stock runs out. See the contracts guide.
Costs summary
- Making a token: 1 DZY (to the treasury), plus the small fee.
- Issuing more: just the small fee.
- Sending it: just the small fee, which the welcome fund can pay.