Sell and buy
A sale is made of records on the chain. The seller signs a listing, the buyer reserves it and pays the seller with an ordinary Monero transaction, and a proof of that payment moves the NFT. There is no escrow.
#The four steps
- List. The owner signs a price and a last block. The lowest price is 0.001 XMR, and a listing lasts at most 21,600 blocks (about 30 days). The market offers 1, 7 or 30 days.
- Reserve. A buyer signs a reservation naming the address that will receive the NFT and a block to pay by, at most 30 blocks ahead (about an hour). Until 10 blocks after that, nobody else can reserve it and the seller cannot cancel.
- Pay. Once the reservation is in a block, the buyer pays from any wallet, in one to three transactions. The seller and the protocol fee address each get their exact amount as one output.
- Buy. The buyer's wallet makes a purchase record with a proof of each payment. Anyone may post it. The NFT moves to the reservation's address. The seller does not have to do anything.
The same steps work for Mordinals and for minted NFTs.
#Selling on the website
Open your NFT on the market, choose Sell, set the price and how long the listing runs, and sign. The page shows what you receive before you sign:
Mordinals list: sell Mordinal #N for 1 XMR (0.95 XMR to <seller>, 0.05 XMR protocol fee); valid until block <until>; code <code>To end a listing, choose Stop selling and sign. A listing that ran out must also be stopped before the NFT can be sent or listed again.
#Buying on the website
Open a listing and choose Buy. Then:
- With the XMR20 wallet, the wallet reserves, pays and proves the payment for you.
- With Feather, Cake Wallet or the Monero GUI or CLI, sign the reservation in your wallet. Once the reservation is in a block, pay exactly the amounts the page shows, to exactly those addresses, at or before the pay-by block. A payment in a block before the reservation's block does not count. Then paste each payment's transaction id and transaction key. The wallet shows the key in the details of the sent transaction (Monero CLI:
get_tx_key <txid>). The key stays in the page: it makes the proof that goes into the purchase record and is never sent or saved.
#The amounts
fee = 5% of the price (the protocol fee)
tail = 1 to 999,999 piconero, from the reservation (ties a payment to one reservation)
seller receives exactly price − fee + tail
fee address receives exactly fee + tailThe tail (at most 0.000001 XMR) makes every reservation's amounts unique, so a payment can never be claimed for another buyer's purchase. Copy the amounts exactly. Paying more, less or in two outputs to the same payee does not count.
A marketplace may add its own fee on top of the price, up to 5%, paid to an address named in the reservation. The project's market adds none.
#Timing
| Blocks | About | |
|---|---|---|
| Longest listing | 21,600 after the listing's block | 30 days |
| Time to pay after reserving | up to 30 | 1 hour |
| Reservation holds the listing | until pay-by + 10 | |
| A payment must be in a block | between the reservation's block and the purchase record's block |
#What a purchase makes public
- The transaction id of each payment and which output paid the seller and the fee address, with their amounts, tied to the buyer's address.
- The shared secret of each of those outputs. It opens exactly that output, as the payee can, and nothing else. It gives no way to spend.
- By elimination, the buyer's change in that transaction. Observers then know one coin of the buyer's wallet.
The inputs of the payment stay hidden behind their rings, as in any Monero transaction. If you want no link between a purchase and the rest of your wallet, pay from a wallet you keep for buying. See Privacy.
#Reading the market
curl https://api.xmr20.org/xmr721/listings
curl https://api.xmr20.org/xmr721/lot/<listing id>
curl "https://api.xmr20.org/xmr721/sales?limit=20"See the HTTP API.