Only prices are public.

Trade, lend, borrow and take leverage on Solana from one private account. Every order is sealed until its batch closes, and every position stays sealed for as long as it is healthy.

SOL / USDCclearing price

183.25USDC

Batch 48,213closes in 00:05.24 sealed

Example batch

  1. 48,212SOL / USDC183.2538.4 SOL14 opened
  2. 48,211SOL / USDC182.97210.6 SOL20 opened
  3. 48,210SOL / USDC182.64121.4 SOL15 opened
  4. 48,209SOL / USDC182.2275.1 SOL21 opened
  5. 48,208SOL / USDC182.53107.7 SOL20 opened
  6. 48,207SOL / USDC182.3775.7 SOL16 opened
  7. 48,206SOL / USDC182.678.1 SOL15 opened

Every batch leaves its prices and totals on the record, and no owner.

All batches

Four markets on one private account

Everything you hold and do sits in one account of sealed notes. Each market shows everyone the same things: a price, a rate, a total.

How a batch runs

An order is sealed with timelock encryption until its batch closes. No relayer, validator or committee can read it earlier, and anyone can read it after, so nothing trades against it before its price is set.

  1. 1Place

    An action locks its funds in a note and seals its terms to the batch’s close.

  2. 2Open

    Buy 12.5limit 182.60Sell 4.0limit 182.10Buy 30.0limit 182.45Sell 18.2limit 182.90Sell 7.1limit 182.30Buy 2.4limit 181.95

    When the timelock round is out, every action in the batch opens at once.

  3. 3Clear

    Buy 12.5at 182.40Sell 4.0at 182.40Buy 30.0at 182.40Sell 18.2not filledSell 7.1at 182.40Buy 2.4not filled

    One price per market, the one that matches the most volume.

  4. 4Settle

    fill → ownerfill → ownerfill → ownerback → ownerfill → ownerback → owner

    Each action pays out to its owner’s commitment. The owner can be offline.

What the chain shows of you

Your address appears when you deposit into Mesa and when you withdraw from it, with the amount encrypted. Between the two, every action is the Mesa address moving notes it owns.

Deposit and withdrawal

your address

The person’s address, with the amount encrypted.

Everything between

the Mesa address

The Mesa address spending notes and creating notes for itself.

Each batch

clearing priceorders, no ownerpool totals

Clearing prices, opened actions without owners, pool totals.

Never on chainWho placed an order, who holds a position, any balance.

Watch it work

Only prices are publicForty seconds on being watched, and a market where the only thing on screen is a price.
How a batch worksOrders go in sealed, open at once and clear at one price. Then a position, across its heartbeats.
Your first sealed tradeConnect, deposit, place an order, watch it fill, then find its batch on the record.
Selling size, borrowing, hedgingOne trader over an hour: several batches, a borrow and a perp hedge, and what the record shows of it.

One call per action

The SDK does from a script what the app does from a browser: it opens the account from a key file, builds each proof where the key is, and places into the open batch.

swap.ts
import { openMesaScript } from '@mesa/sdk/node'

const mesa = await openMesaScript({ apiUrl, keyFile: './wallet.json' })

// 1,850 USDC for SOL at 185.00 or better, sealed until its batch closes
const { order, batchNumber } = await mesa.swap({ marketId: 'SOL-USDC', side: 'buy', amount: 1_850_000_000n, limitPrice: '185.00' })
  • mesa.deposit
  • mesa.swap
  • mesa.supply
  • mesa.redeem
  • mesa.borrow
  • mesa.repay
  • mesa.perp
  • mesa.close
  • mesa.vaultDeposit
  • mesa.vaultWithdraw
  • mesa.renew
  • mesa.renewLoop
  • mesa.withdraw