Hadal
Start trading
  • OverviewStart
  • QuickstartStart
  • What is sealed and what is seenStart
  • Sealed balancesConcepts
  • Sealed ordersConcepts
  • The book and the pool's midConcepts
  • DealsConcepts
  • SoundingsConcepts
Start

Overview

What Hadal is, what you hold in it, the three ways an order fills, and where each task is documented.

Hadal is a spot trading venue on Solana. A dark pool, an AMM and an OTC desk on Solana that share one sealed book. Every order is encrypted in the wallet and matched inside Arcium’s MPC cluster, so size, side and price stay unseen until the trade is done.

These docs are for two readers: someone trading on Hadal through the app, and someone building on it with the SDK, the HTTP API or the program itself. Every task has a guide, and every value the product defines is in the reference.

What you hold

You deposit a market's two tokens and from then on hold a sealed balance. The chain stores it as ciphertext that the cluster computes on and that you alone read. Everything you do after the deposit moves that balance and nothing public. Sealed balances tells it in full.

You read your own balances, orders and receipts with the reading key, which your browser derives from one wallet signature. See The reading key.

One order, three ways to fill

A sealed order is one encrypted intent. The order ticket sends it one of three ways.

WayUse it toHow it fills
SwapTrade nowCrosses the book at the pool’s mid, then sweeps the curve for the rest, inside the limit.
Dark orderTrade size at the midRests in the sealed book and fills only by crossing. No price impact.
DealTrade a block with one partyOne counterparty, two sealed limits, the midpoint if they cross.
  1. 01Seal
  2. 02Queue
  3. 03Cross
  4. 04Sweep
  5. 05Rest
  6. 06Receipt
  7. 07Sounding
The sealed order's path, from the wallet to the sounding.

The mechanism of each step is in Sealed orders, the price they share in The book and the pool's mid, and the desk in Deals.

What the chain sees

Once a minute a market prints the pool’s price and the minute’s volume on chain. Nothing else is printed. Between soundings the chain sees deposits, withdrawals, and that a wallet acted. What is sealed and what is seen lists it action by action.

Where to go

The terms

Each term is defined once here and used with this meaning on every page.

TermMeaning
Sealed orderOne encrypted order that crosses the book, sweeps the pool or meets one counterparty. Nobody can read it, the team included.
Sealed balanceWhat a trader holds in a market after depositing: ciphertext only the cluster can compute on and only the trader can read.
MarketA pair of two tokens with its own vaults, pool and book.
PoolThe liquidity that prices every trade in a market and fills what the book cannot.
BookThe resting orders of a market, sealed.
CrossTwo orders meeting in the book at the pool’s mid, with no price impact.
SweepThe rest of an order trading against the pool’s curve, inside its limit.
RestAn order waiting in the sealed book until another order crosses it.
DealA trade with one counterparty at the midpoint of two sealed limits. When they don’t cross, nothing but “No deal” is revealed.
ReceiptThe result of an order, encrypted to its owner: filled, average price, resting.
SoundingOnce a minute a market prints the pool’s price and the minute’s volume on chain. Nothing else is printed.
Reading keyThe key that reads your sealed balances and receipts, derived in the browser from one wallet signature.
The surfaceThe public chain.
BelowWhat Hadal holds sealed.