Skip to main content

Marketplace

Names can be bought and sold through a built-in escrow marketplace. Buyer payments are fully shielded.

Selling

The seller signs a LIST request via the API:

Signed message: "LIST:alice:1000000:u1seller...addr...:3"

This lists alice.zec at 0.01 ZEC (1,000,000 zatoshis). The seller provides a payout address.

Buying

The buyer sends a shielded transaction to the escrow address with a BUY memo:

ZNS:v1:BUY:alice:f7g8h9...buyer_pubkey...:u1buyer...addr...:1000000

The scanner validates:

  • Name must be listed for sale
  • Payment must match the listing price exactly
  • If valid: name transfers to buyer, payout queued for seller
  • If invalid: refund queued for buyer
Buyer                          Zcash Blockchain                   ZNS Scanner
| | |
|-- send ZEC to escrow + memo ---->| |
| (shielded BUY transaction) | |
| |-- new block ------------------>|
| | |-- validate purchase
| | |-- transfer name
| | |-- queue seller payout

All Operations

OperationMethodDescription
LISTSigned APIList a name for sale
DELISTSigned APIRemove a listing
BUYOn-chain memoPurchase a listed name (shielded)
CONFIRM_SALESigned APIFinalize an off-protocol sale