How it works
Ophis compares available routes for your trade. Public swaps can use a signed batch-auction order or a direct transaction; cross-chain transfers and private swaps use separate execution flows.
Batch-auction order lifecycle
- Choose the trade. Select tokens, networks and an amount in the swap app, or build an order with the SDK.
- Sign the order. Your wallet authorizes the sell amount and minimum output using EIP-712 for EOAs or ERC-1271 for smart-contract wallets.
- Enter the auction. Solvers compare onchain liquidity and peer-to-peer matches, then bid to settle the batch.
- Settle the trade. The winning solver submits the batch onchain with uniform clearing prices per token pair and enforced order limits.
Offchain order submission, uniform clearing prices and peer matching reduce front-running and sandwich opportunities. See Security & audits.
Settlement operators
| Networks | Orderbook and solvers |
|---|---|
| Optimism, Unichain, Robinhood Chain, Arc | Ophis operates the orderbook and solver |
| Ethereum, Arbitrum, Avalanche, Base, BNB Chain, Gnosis, Ink, Linea, Plasma, Polygon | Partner-operated orderbooks and solver network |
The onchain GPv2AllowListAuthentication contract controls which solvers can settle orders. Each settlement enforces your signed limit price.
Other swap paths
A direct swap executes a quoted transaction from your wallet and requires network gas. It does not enter a batch auction. The form shows the selected route and its minimum output before approval.
Private mode uses a RAILGUN shielded wallet on Ethereum, Arbitrum, Polygon or BNB Chain. Its supported pool routes and broadcaster fees differ from public batch auctions. See private swaps and Fees.
Developer intent parsing
The Intent API converts natural language into a structured ParsedIntent for your app or agent to use when building an order.
plain English structured order batch auction settlement
┌──────────────┐ parse ┌──────────────────┐ sign ┌──────────────────┐ ┌──────────────┐
│ "swap 100 │ ─────▶ │ sell: USDC │ ───▶ │ solvers compete │ ─▶ │ uniform-price│
│ USDC for │ LLM │ buy: ETH │ wallet│ for best execution│ │ on-chain │
│ ETH on Base"│ │ amount: 100 │ │ (DEX / peer match)│ │ settlement │
└──────────────┘ │ chain: base │ └──────────────────┘ └──────────────┘
└──────────────────┘
| Parser setting | Value |
|---|---|
| Model | LibertAI Qwen 3.6 27B, hosted on Aleph Cloud |
| Temperature | 0 |
| Chain validation | 14 supported slugs, including Arc |
| Output checks | Symbol syntax and source-text spans |
A Cloudflare Pages Function holds the LibertAI API key server-side and validates the response. Your integration resolves token contracts, requests a quote and asks the wallet to sign.
Ophis components
Cross-chain transfers
| Provider | Flow |
|---|---|
| NEAR Intents | Source order or external deposit followed by destination delivery |
| Circle | Direct asset bridging with transfer tracking and recovery |
| Across | Bridging through supported source and destination networks |
For an external NEAR source, select the route in the standalone app, provide the destination and source refund addresses, then fund the quoted deposit. Keep the transfer record until delivery or refund completes.