MEV protection
Batch auctions, off-chain solver competition. Users never lose surplus to frontrunners.
Intent-based, MEV-protected, batch-settled swaps. Describe a trade in plain English; settle in one batch. Built for autonomous agents and the developers who deploy them.
An intent, a sell token, a buy token. The Ophis API does the rest — quote, route, MEV protection, settlement. Hit it from JavaScript, Rust, or just curl.
# Parse a natural-language swap intent
curl -X POST https://swap.ophis.fi/api/intent \
-H "Content-Type: application/json" \
-d '{
"text": "swap 100 USDC for ETH on Optimism"
}'
# Successful response is wrapped in { ok, data }:
# {
# "ok": true,
# "data": {
# "intent": "swap",
# "entities": [
# { "type": "amount", "value": "100", "raw": "100", "start": 5, "end": 8 },
# { "type": "sellToken", "value": "USDC", "raw": "USDC", "start": 9, "end": 13 },
# { "type": "buyToken", "value": "ETH", "raw": "ETH", "start": 18, "end": 21 },
# { "type": "chain", "value": "optimism","raw": "Optimism","start": 25, "end": 33 }
# ]
# }
# }Batch auctions, off-chain solver competition. Users never lose surplus to frontrunners.
High-volume agents and DAOs earn fee rebates automatically via the rebate-indexer.
Receiver-pin checks, chain-id validation, partner-fee config — guardrails out of the box.
Partner-fee defaults, chain registry, settlement-address resolution, and agent-safety guards — everything an integrator needs to ship without footguns.
import {
ophisDefaultPartnerFee,
OPHIS_PARTNER_FEE_RECIPIENT,
} from '@ophis/sdk'
// Resolve Ophis's default partner-fee config for the chain
// (price-improvement-bps capped by max-volume-bps).
const partnerFee = ophisDefaultPartnerFee(/* chainId */ 10)
// partnerFee = {
// recipient: OPHIS_PARTNER_FEE_RECIPIENT,
// bps: 2500, // 25% of price-improvement
// maxVolumeBps: 50, // capped at 0.5% of volume
// }
// Plug into your CoW order's appData — receiver-pin and chain-id
// checks happen in buildOphisAppDataPartnerFee() under the hood. Forked from CoW Protocol's settlement stack. Audited by Trail of Bits. Powered by Aleph Cloud compute. LLM intent parsing via LibertAI. Cross-chain routing via NEAR Intents and Bungee.