
The problem: names you can register but not trade
SuiNS gives Sui users human readable names (like alice.sui) that are owned as on-chain objects. Registration and renewal were covered by the core protocol, but there was no native way for holders to sell a name, run an auction for a premium one, or accept an offer from someone who wanted it.
We worked on a fork of the SuiNS contracts repository and set out to add a complete marketplace: contracts that move names between owners safely, an indexer that turns on-chain events into queryable state, an API for the frontend, and a dApp where users browse, bid and manage their names. Work ran from May 2025 into February 2026.
Marketplace contracts in Move
The marketplace lives in its own auction package, separate from the core SuiNS package, so it can evolve and be upgraded without touching registration logic. It covers three trading modes:
- Auctions with a minimum bid increment and an anti sniping rule: a bid in the last 5 minutes extends the auction by 5 minutes.
- Offers on any existing name, with expiration dates.
- Fixed price listings for instant sales.
Auctions accept coin types other than SUI, sales carry a service fee (2.5% by default, adjustable by an admin), and ownership is relinked to the new owner on settlement. We added an upgrade pattern, extra validity checks (for example that the domain exists), refactored error codes, and covered every flow with Move tests, including multi coin auctions.
Private reserve prices with Seal
Sellers often want a reserve price without revealing it, since a public floor anchors bidding. We implemented optional reserve prices encrypted with Seal, Mysten Labs' encryption and access control service. The dApp encrypts the reserve price client side when an auction is created, and the contract includes a package id check so only the correct package can authorize decryption.
This kept the reserve hidden during bidding while still letting the auction settle against it at the end, without a trusted backend holding the secret.
Indexer, API and dApp
On-chain events are only useful once they are queryable. We built an indexer in Rust on Mysten's sui-indexer-alt framework, with separate pipelines for auctions, offers and listings writing to PostgreSQL through Diesel, plus migrations, watermark management and later unified activity and marketplace domain tables.
On top of it, a NestJS API with Prisma serves domains, user profiles, bids, offers, activity feeds and an endpoint that finds auctions ready to be finalized, with a caching layer for hot reads. The React dApp (Vite, Tailwind) provides Browse, Details and My Hub views, URL driven filters, countdowns and the full auction flow UI, including the sold and no bidder states.
Outcome
The marketplace contracts were deployed and upgraded on Sui testnet several times as the design matured, with the indexer, API and dApp tracking each contract change. We also kept the fork in sync with upstream SuiNS, merging Mysten's main branch repeatedly so the marketplace stays compatible with the core protocol.
The result is an end to end trading stack for Sui names: contracts, data layer and user interface designed together, with privacy for sellers built into the auction design rather than added afterwards.