DZNYE CHAIN connecting…

Trade on the market

Swap any token for any other on Dznye Chain. Post an offer, or take one: both sides move at the same moment, or nothing moves, and nobody holds your things.

The market lets you swap one thing for another with a stranger, safely. There is no company in the middle holding anything. The chain itself makes sure the swap happens completely or not at all.

How a trade works

  1. Someone posts an offer. "I give 10 GOLD, I want 2 DZY." What they give is held by the chain until the offer is taken or cancelled, so the offer is real.
  2. Someone takes it. They accept the offer as it is. Both sides then move at the same moment: you receive what you wanted, they receive what they wanted.
  3. Or it is cancelled. The person who posted it can cancel at any time before it is taken, and gets their things back.
Why this is safe

Neither person can run off with the other's things, because nothing leaves either account until both parts of the swap happen in one step. If it cannot complete, nothing moves.

Take an offer

  1. Open the market.
  2. Read the list: what is given, what is wanted, and the price ("0.2 DZY each").
  3. Press Take on the one you want. You need to hold what the offer wants.

Offers are taken in full. You cannot take half an offer, so post smaller offers if you want to trade in pieces.

Post an offer

  1. On the market page, under Offer something, choose what you give and how much.
  2. Choose what you want and how much.
  3. Press Post the offer.

What you give leaves your balance and waits on the chain. You can see it, and cancel it, in the list.

Prices

There is no fixed price. Each offer sets its own. The list shows the price as "how much of the wanted token per one of the given token", so you can compare offers. If the price you want is not there, post your own and wait.

Costs

Posting, taking and cancelling each cost the small fee of 0.001 DZY. The welcome fund pays it for new accounts. There is no extra market fee.

For builders

From code: await dz.trade(me, { give: [gold, '10'], want: ['DZY', '2'] }) and await dz.take(me, offerId). Read all open offers at GET /offers. See the developer kit. Contracts can also build more complete markets: see contracts.