Skip to main content

Agent swap controls

Ophis gives your agent quotes and orders with signed limits on the tokens, amounts and receiver.

Order controls​

Keyless quotingGet quotes and build orders without an API key or signup.
Your signerSign the returned EIP-712 order with your own wallet.
Signed limitsSettlement enforces your sell amount, minimum buy amount and receiver.
Batch settlementOffchain orders and uniform clearing prices reduce common ordering advantages.
Solver-paid settlementSolvers pay settlement gas for standard ERC-20 orders.

Build an order​

SDK v0.4.5 and hosted MCP cover 14 EVM mainnets, including Arc.

  1. Connect your client. Point an MCP client at https://mcp.ophis.fi/mcp.
  2. Request an order. Call build_order to fetch a live quote, apply your slippage bound and pin the receiver to the owner.
  3. Check the fields. Review the tokens, sell amount, minimum received and receiver before signing.
  4. Sign and submit. Sign the EIP-712 order with your wallet, then call submit_order.

Use Turnkey wallet policies to restrict the signer to your token allowlist, the chain's settlement contract and your own receiver address.

Fees and gas​

build_order applies the chain's Ophis fee policy:

FeeAmount
Base1 bp
Volatile-pair price improvement80% of reference-quote improvement, capped at 99 bps
Stable-pair price improvement50% of reference-quote improvement, capped at 20 bps

Ophis-operated backends apply the improvement policy; partner-hosted orders encode it in CIP-75 appData.

Keep native gas for token approvals, renewed exact allowances, wrapping, native-token placement, hard cancellation and refunds.

Next​