Skip to main content

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​

  1. Choose the trade. Select tokens, networks and an amount in the swap app, or build an order with the SDK.
  2. Sign the order. Your wallet authorizes the sell amount and minimum output using EIP-712 for EOAs or ERC-1271 for smart-contract wallets.
  3. Enter the auction. Solvers compare onchain liquidity and peer-to-peer matches, then bid to settle the batch.
  4. 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​

NetworksOrderbook and solvers
Optimism, Unichain, Robinhood Chain, ArcOphis operates the orderbook and solver
Ethereum, Arbitrum, Avalanche, Base, BNB Chain, Gnosis, Ink, Linea, Plasma, PolygonPartner-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 settingValue
ModelLibertAI Qwen 3.6 27B, hosted on Aleph Cloud
Temperature0
Chain validation14 supported slugs, including Arc
Output checksSymbol 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​

ProviderFlow
NEAR IntentsSource order or external deposit followed by destination delivery
CircleDirect asset bridging with transfer tracking and recovery
AcrossBridging 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.

Next​