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
- 48,212SOL / USDC183.2538.4 SOL14 opened
- 48,211SOL / USDC182.97210.6 SOL20 opened
- 48,210SOL / USDC182.64121.4 SOL15 opened
- 48,209SOL / USDC182.2275.1 SOL21 opened
- 48,208SOL / USDC182.53107.7 SOL20 opened
- 48,207SOL / USDC182.3775.7 SOL16 opened
- 48,206SOL / USDC182.678.1 SOL15 opened
Every batch leaves its prices and totals on the record, and no owner.
All batchesFour 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.
1Place
An action locks its funds in a note and seals its terms to the batch’s close.
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.95When the timelock round is out, every action in the batch opens at once.
3Clear
Buy 12.5at 182.40Sell 4.0at 182.40Buy 30.0at 182.40Sell 18.2not filledSell 7.1at 182.40Buy 2.4not filledOne price per market, the one that matches the most volume.
4Settle
fill → ownerfill → ownerfill → ownerback → ownerfill → ownerback → ownerEach 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
The person’s address, with the amount encrypted.
Everything between
The Mesa address spending notes and creating notes for itself.
Each batch
Clearing prices, opened actions without owners, pool totals.
Never on chainWho placed an order, who holds a position, any balance.
Watch it work
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.
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