Names-On-Chain

A hands-on PSBT and NameOp workshop on Doichain: look up, register and trade names without a private key in the browser. Each lesson is an app in this repository, built and published here.

The apps talk to Doichain mainnet. A PSBT you sign in your wallet spends real DOI, so check every output before you sign.

  1. Lesson 1 – Talk to the chainConnect to ElectrumX and look up a Doichain name.
  2. Lesson 2 – UTXOs, name coins and expiryRead the coins and names of an address, scan the QR code of an address.
  3. Lesson 3 – A name registration transactionLocked amount, mining fee and change for a new name.
  4. Lesson 4 – A PSBT over QRHand the unsigned transaction to DoiWallet as an animated QR code.
  5. Lesson 5 – Atomic name tradingBuild a PSBT that swaps a name for DOI in a single transaction.

Source code, lesson texts and known issues