SeshSwap

Makers and hosts

Two ways to take part: sell XMR as a swap maker, or sell exit time from a server. Both are testnet only for now.

Swap makers

A maker holds XMR and sells it for ETH or USDC. It runs swapd maker, an always-on service that quotes, locks XMR and claims without anyone at the keyboard.

What a maker runs

  • swapd with a Monero wallet and an Arbitrum Sepolia RPC, reachable at a .sesh name through Session Router.
  • Prices from the median of four public sources, with a spread taken off. It stops quoting if the sources disagree, the price jumps or the price goes stale.
  • Limits: a minimum and maximum per swap and a cap on total XMR promised, checked before every swap.
  • Quotes that expire. If the taker's lock doesn't show up in time, the maker drops the swap and never locks XMR for it.
  • Health checks: /healthz and /metrics.

Listing in the registry

  • Register your .sesh name with the tag maker and an ETH bond of at least 0.002 ETH.
  • You can quote swaps worth up to 5 times your bond. The wallet won't ask for more, and your daemon refuses larger swaps.
  • For each swap your daemon signs a commitment. After the taker locks, your daemon must post a signed "XMR locked" note within the time set in that commitment. You choose it in your config, between 10 and 30 minutes (the registry's limits); the default is 10. If it doesn't, the taker can claim a penalty from your bond: 5% of the swap, at least 0.00005 ETH. Your daemon posts the note by itself once its XMR lock is sent.
  • To leave the registry, send a leave request. The listing disappears at once, and you can withdraw the bond after 3 days with no open swaps.

Registry guide ยท Design notes

Exit sellers

An exit seller runs a Session Router exit on a Linux server and sells hours on it. Buyers pay through ExitLease, and the money goes straight to your payout address.

Listing an exit

  1. On an Ubuntu 24.04 server, run the seller kit's installer as root. It prints your exit's .sesh name.
  2. Register that name in SeshRegistry with the tag exit and a bond of at least 0.0002 ETH.
  3. Set an offer in ExitLease: your payout address, the price per hour in USDC, ETH or both, and the most hours one purchase can buy.
  4. Run the installer again with your listing id to start the watcher.

What the seller kit sets up

  • The exit router: a pinned Session Router build that can act as an exit.
  • NAT for web traffic only (ports 80 and 443). Everything else is dropped.
  • DNS: a resolver that only buyers in the tunnel can reach.
  • The watcher, which lets each buyer in when it sees their purchase on-chain and keeps them in until their time ends.
  • A watchdog, a health check on your server that tests the exit the way a buyer uses it and restarts it if it gets stuck. A second small router (the probe) on the same server, with its own key, looks up a site through the exit's resolver and opens a TLS connection through the exit every 30 seconds. That key is created on your server when the kit is installed and never leaves it. After 5 minutes of failures the watchdog restarts the exit with the same key, so buyers reconnect by themselves. Restarts are rate-limited.

The probe can't see problems that only some buyers have, or sites other than the one it checks. Uninstalling removes the services and the NAT and puts forwarding back as it was.

Exit guide