XMR721
Market

Overview

How XMR721 works

Under XMR721 the owner of an NFT is recorded in a public ledger. The ledger is worked out from the Monero chain alone, so anyone can check it.

#Three public inputs

A reader works out the ledger from three things, and nothing else:

  1. The owner list at the start block. One entry per Mordinal under the original 2023 rules: the transaction that inscribed it, the transaction whose first output holds it now, and that output's key. It is published in the repository as owners.jsonl with the code that made it.
  2. Records in Monero transactions, read in chain order from the start block on.
  3. Payment transactions that purchase records point to, as any Monero node returns them.

No server database counts, and no agreement made off the chain. Two readers that see the same chain reach the same owners.

#Records

A record is a short byte string: claim, move, list, cancel, reserve, buy, collection, mint or burn. Each one starts with the bytes MD1 and an operation number and is at most 1,000 bytes.

A record rides in the extra field of an ordinary Monero transaction, cut into chunks after the transaction's public key. The transaction is built by a normal wallet with normal rings and pays whatever it pays. Who made it does not matter: a record stands on its own signature or its own payments, so anyone can carry it.

Text
tx_extra = 01 <transaction public key>
           02 <length> 7f <chunk of the record>     (repeated, 254 bytes a chunk)

See Records and signed texts for the format.

#Signatures

Every record that changes who owns something is signed by the person it belongs to, with the wallet's ordinary Sign message feature (wallet2 SigV2, with the spend key). The text that is signed is one plain line that the record's bytes fully decide, for example:

Text
Mordinals move: send Mordinal #2177 to 4A…; move 0; code 5c1e…

The reader rebuilds that text from the record and checks the signature against it. What a person reads in their wallet is exactly what the ledger applies. Feather, Cake Wallet, the Monero GUI and CLI, the wallet RPC and the XMR20 wallets can all sign.

#Readers and relays

  • A reader follows a Monero node block by block, finds records, judges each one with the rule library, and keeps a log and checkpoints. It serves the ledger over HTTP. Anyone can run one; the XMR20 project runs one at https://api.xmr20.org/xmr721/.
  • A relay takes a signed record from a wallet that cannot build such a transaction itself and publishes it in a transaction of its own. It pays the network fee. It cannot change a record, because any change breaks the signature.
  • The check tool replays a reader's log with the rules and recomputes every checkpoint, so you never have to trust a reader. See Verify a reader.

#Claiming a Mordinal

A 2023 Mordinal belongs to whoever holds output 0 of its last transaction. XMR721 fixed that owner list at its start block and lets the holder claim each Mordinal once, to any address:

  • Burn and claim. The holder spends the inscribed coin in one transaction that retires the old Mordinal for good, by the old rules, and names the new owner. The XMR20 wallet does this in one approval. See Claim with the XMR20 wallet.
  • Claim by a spent coin. A Feather user sends the coin to themselves in an ordinary transaction, then signs a claim that names that transaction. See Claim from Feather.

Every claim pays a small fee to the project, on top of the network fee. After the claim the Mordinal is an XMR721 NFT owned by an address. Old-style transfers after the start block move nothing on this ledger, except a burn claim.

#After the claim

ActionRecordWho signsWhat happens
Sendmovethe ownerThe NFT goes to another address
Selllistthe ownerA price and a last block; 5% of the price goes to the protocol
Stop sellingcancelthe ownerThe listing ends
Buyreserve, then buythe buyerReserve, pay from any wallet, prove the payment
Burnburnthe ownerThe NFT ends for good (minted NFTs and claimed Mordinals)

Each NFT has a counter that goes up with every move, sale and cancel, so a signed record can be used once and never replayed.

#New NFTs

From the ledger's first mint block anyone can make a collection (a name and a number of editions) and mint NFTs into it, or mint single NFTs that belong to no collection. The whole NFT, name and content, lives in one record of at most 1,000 bytes. A minted NFT moves and sells exactly like a Mordinal. See Launch a collection and Inscribe from the command line.

XMR20 tokens are announced on the same ledger, by an inscription of their deploy text. See XMR20 tokens.

#What records do not contain

After the claim, no record:

  • contains or needs a key image,
  • needs a transaction with chosen ring members,
  • uses reserve proofs or spend proofs,
  • carries a transaction key.

Records fit Monero's standard relay limit of 1,060 bytes of extra data. See Privacy for exactly what each action makes public.