Docs · Start
Quickstart: your first sealed trade
From a wallet to a filled order in the app, and then to the public record of the batch that filled it.
This walks through one trade in the app at mesa.markets: set up the account, place a sealed order, watch its batch close, and read what the chain shows of it. You need a Solana wallet holding the asset you want to trade with and a little SOL for the transactions your wallet signs: registering, and the two deposits.
Connect and read your account
Press Connect and choose your wallet. Then press Sign and read. Your wallet signs one message. The signature derives your account's keys in the browser and moves nothing.
Register a Rings private wallet
Open Portfolio. If the wallet has never used Solana Privacy Rings, the Deposit and withdraw panel shows Register a Rings private wallet. It is one transaction, signed by your wallet, and it is done once per wallet.
Deposit
In Deposit and withdraw, choose the asset.
- Choose Wallet to Rings, enter an amount, press Review and then Deposit. This moves the asset from your public balance into your Rings private balance.
- Choose Rings to Mesa, enter an amount, press Review and then Deposit into Mesa.
Your balance appears under Balances, in the column In Mesa, free. From here on, everything you hold and do is a sealed note.
Place an order
Open Trade and choose a market. In Place a sealed order:
- Choose Buy or Sell, and Limit or Market.
- Enter what you pay under You pay.
- For a limit order, enter the Limit price. Last clearing price fills in the price of the last batch.
- Press Review order, check You lock, the limit and the batch, and press Place order.
The panel shows the order being signed, proved and relayed, and then placed in its batch. The proof is generated in your browser.
Watch the batch
The head of the page counts down to the batch's close. Your order is listed under Your orders here as Sealed. When the batch closes it becomes Opening, and then Filled, Partly filled or Not filled, with the amount filled and the clearing price.
You can leave the page after the order is placed. It settles without you.
Read the batch
Press batch N on your order, or open Batches and choose the batch. The record shows the market's clearing price, every order the batch opened with its side, amount and limit, and the change in each pool's totals. Your order is among them. Nothing on the page says which one is yours.
What happened
| Step | On the chain |
|---|---|
| Wallet to Rings | Your address, the asset and the amount |
| Rings to Mesa | Your address. The asset and amount are encrypted. |
| Place order | That an action entered the batch, and a commitment |
| The batch opens | Your order's terms, with no owner |
| The batch settles | The fill, paid to a key that appears nowhere else |
What you bought is in your Mesa balance. To take it out, use Mesa to Rings and then Rings to wallet in the same panel. See Deposit and withdraw.