Fees, and who pays them
The fee follows how busy the chain is, from 0.000001 DZY when it is quiet. Who it goes to, when the Sun pays it for you, and how apps pay for users.
Every action on Dznye Chain costs a tiny fee. The fee keeps the chain free of spam and pays the people who keep it alive. You will usually not notice it.
The fee
Nobody sets the fee: the blocks do. When blocks are more than half full it rises a little with each block, and when they are less than half full it sinks, never below 0.000001 DZY and never above 1,000 DZY. It is also never below a floor that the chain's commission sets once a day: the floor rises a little while the validators' council fund is short of its cushion, and falls when the fund is full, so a busy chain gets cheaper (the chain's central bank). The fee right now is on the status page.
| Action | Cost |
|---|---|
| Almost every action (send, trade, update) | The fee |
| Take a name | 0.1 DZY plus the fee |
| Make a token | 1 DZY plus the fee |
| Put a contract on the chain | 1 DZY plus the gas fee |
| Call a contract | The fee, plus a little more for how much work it does (gas) |
| Keep a record (a note, a product, a file link) | 0.00001 DZY a character, plus the fee |
| A transaction the chain refuses | Free |
If you send DZY, the fee comes on top of the amount, so you need a little more than you send.
Where the fee goes
Every fee goes into a pot and comes back out over about a day: 20% to the validators' council fund (their wage), and 80% as the chain's profit: 40% of it to the people who lock DZY, 10% to holders, 50% to the Sun. Charges (names, tokens, contracts, records) go to the Sun. Nothing is destroyed. See DZY coin and the Sun.
When someone else pays
The Sun, for small accounts
An account that holds some DZY, but less than 100 fees' worth, has its fees paid by the Sun, from a budget of 0.5% of the Sun a year (at most a day's worth saved up). It never pays for an empty account: if it did, anyone could make endless new keys and fill the chain for free.
Starter credit, for brand-new accounts
A brand-new account can take 2.2 DZY of starter credit in the wallet: it pays the fees, a name of 6 or more characters, a test token and a test contract. It can never be sent. The first DZY the account receives repays it, with the policy rate as interest; unpaid after about 6 months, the name is released and the account never gets credit again. See the chain's central bank.
The wallet's welcome fund
A brand-new account holds nothing. The wallet's welcome fund can pay its fee for everyday actions (sending, taking a name, trading, payment channels, small contract calls) while the fund holds DZY. Its balance is on the status page. It does not pay for making a token or a contract, or for staking. Its limits stop anyone draining it:
| From one internet address | 20 requests an hour |
| For one account | 50 actions a day |
| Names, from one internet address | 3 a day |
| For everyone together | 3,000 actions a day |
The surest start is a little DZY of your own: Buy DZY in the wallet, or ask someone to send you some.
Apps can pay fees for their users
Any app can do what the welcome fund does. A person signs what they want to do and names the app as the payer. The app then signs that it agrees to pay. Each signature covers the whole transaction, so neither side can change it afterwards.
- The app needs some DZY to pay with.
- An account that needs several keys cannot be a payer.
- For code: see paying fees for your users.
Bots and agent keys
An agent key has its own fee budget. It can only spend fees up to the budget you set when you created it, so a bot can never drain your DZY through fees.