# Xochi > The Agentic Dark Pool on Ethereum. Signed intents, private execution and settlement on routes advertised by live capabilities. Xochi is an intent-based execution venue. Users sign trade parameters and a solver fills them onchain. Routes, tokens, bounds and settlement methods follow https://api.xochi.fi/api/capabilities. Xochi holds no user assets; origin funds move to the solver, not escrow. ## Core Concepts ### Intent-Based Execution Users sign an intent; solvers compete to fill it. Typical Xochi fill is ~2 seconds, <6 seconds P95; this is not zk.money's Aztec credit time. Settlement transactions are on-chain. ### ERC-8262 (Xochi's ZK Compliance Oracle) Zero-knowledge proofs that verify compliance conditions without revealing the underlying identity or transaction data. Formalized as the proposed ERC-8262 standard and separate from the live trade path. ### Settlement - Public: on-chain settlement to a wallet address, including Ethereum DAI to a zk.money tag deposit address. - Stealth: one-time stealth smart accounts (ERC-5564 + ERC-4337) on Ethereum or Base, gasless claim via account abstraction (Pimlico). Open to every wallet. - Other settlement modes: clients must use the options returned by live capabilities. Send-to-tag does not enable shielded authorization or native Aztec trading. Retention: stealth payout links are cleared 7 days after a trade completes, fails or is refunded (an expired trade keeps them until its trade record is deleted); trade records are deleted 90 days after the trade's last update in a final state, and swap failure reports 30 days after receipt. A retention hold delays these deletions, and the solver keeps its own copy. See https://xochi.fi/privacy. ### Send to a zk.money Tag (live) `POST https://api.xochi.fi/api/intent/quote`: supply the usual quote fields (`wallet`, `from_chain_id`, `from_token`, `from_amount`, `deadline`, `slippage_bps`) plus `recipient_tag: "@tag"` (or `"tag"`), `to_chain_id: 1`, `to_token: "0x6B175474E89094C44Da98b954EedeAC495271d0F"` (DAI, 18 decimals), `settlement_preference: "public"`. Do not send `recipient_address` with `recipient_tag`. Use an exact advertised origin/token pair. Tron support is canonical USDT only, when advertised; executable Tron quotes require matching wallet-bound authentication and an explicit `allocation_key`. The tag is normalized to lowercase and bound to a one-time Ethereum `recipient_address`; the response echoes both. Executable Tron quotes freeze that address per wallet/allocation key before solver dispatch. Retry unknown outcomes with the same key and unchanged terms; never resolve or substitute another address. Tron funds through an independently verified manual deposit route without intent/pull signatures. Other fresh quotes resolve `.zk.money` once and use the normal sign/execute flow. Delivered DAI must be 1..4900 inclusive, not the input amount. zk.money charges an arrival fee of about $0.35. Xochi fills public DAI to the Ethereum deposit address; zk.money sweeps it and credits the tag on Aztec. An Ethereum fill or Xochi completion is not proof of Aztec credit; check https://wallet.zk.money/activity. This is not an Aztec trading chain or private Xochi settlement. Tron funding and Ethereum deposits and withdrawals are public and may correlate. Xochi and the solver see the deposit address and amount; zk.money's signing enclave sees the recipient and amount and co-signs payments and withdrawals. Its software is unpublished and only zk.money can run it; outages can stop sweeps, credits, payments and withdrawals. ENS resolution and zk.money are upstream dependencies, not Xochi escrow guarantees. Wrong destination parameters return `tag_destination_unsupported`; an unresolved tag returns `tag_unresolved` (200); resolution service failure returns `tag_resolution_unavailable` (503). ### Trust Score (not live) Optional identity verification through third-party attestation providers (Human Passport, Privado ID, Humanode, Worldcoin, Coinbase Verified, ENS, ZKPassport, Chainalysis, etc.). Higher scores lower the fee. Institutional is awarded through institutional partnerships. Compliance attestations are score signals, not a sanctions gate. Today the attestation issuer allowlist is empty, attestations do not affect fees, and every wallet resolves to the Standard trust tier. Clients must read the feature flags on GET https://api.xochi.fi/api/capabilities before offering verification, trust-economics or ERC-8262-gated actions. ### Trust Tier Fees Fee = never-discounted solver cost (Riddler) + venue fee (Xochi) + routing fee (Raxol, funds buyback). The trust discount carves only venue + routing. Stablecoin / volatile (ETH/WETH) shown. | Score | Tier | Fee (stable / volatile) | |---------|---------------|-------------------------| | 0-24 | Standard | 0.22% / 0.40% | | 25-49 | Trusted | 0.19% / 0.35% | | 50-74 | Verified | 0.15% / 0.29% | | 75-99 | Premium | 0.12% / 0.25% | | 100+ | Institutional | 0.10% / 0.22% | Every wallet trades at the Standard tier today. A promotional discount, where offered, is separate from the trust tier. ### Riddler (Protocol Solver) Xochi's solver serves only the routes, assets and limits advertised by `/api/capabilities`. Clients must use that response instead of a static network or token list. ## Revenue Model | Source | Take | |----------------|-----------------------------------| | Trading fees | 0.10-0.40% (tier + asset based) | | Intent surplus | 15% of price improvement | | Riddler margin | Solver spread capture | | x402 calls | $0.005-$0.01 per premium call | There is no separate privacy premium. Privacy access is bundled into the trust-tier fee. ## Architecture Frontend (React 19 + Vite) -> Cloudflare Workers + D1 -> Solver Network (Riddler) -> advertised trading chains. Send-to-tag: public Ethereum DAI deposit -> zk.money -> Aztec. Auth is wallet-first: sign the EIP-712 intent to trade with no Xochi ID -- the signature is the auth (verified against the intent's wallet), Standard tier. Passkey Members are an optional upgrade (history, stealth, Mandates); credentials are encrypted in KV (AES-256-GCM), no PII in D1, discoverable WebAuthn (no username stored server-side). ## For AI Agents Xochi is built to be transacted with by autonomous agents. Agents transact in one of three roles: - **Wallet** (live): an agent with its own wallet signs the EIP-712 intent and executes directly -- no account, no x402, the signature is the auth. Standard tier. - **Guest** (live): no account, pays per call via x402 micropayments, capped at Standard tier privacy. The default mode for `@xochi/mcp` and any MCP/A2A integration today. - **Mandate** (live): a Member signs an EIP-712 delegation envelope authorizing a specific Agent wallet to act within scoped limits (max amount, expiry, call count). The Agent presents the envelope on every request and inherits the Member's tier and privacy access. No agent JWT, no session, no persisted (Agent, Member) mapping server-side. The Member revokes an outstanding envelope via `POST /api/auth/mandate/revoke` (delegator-signed). For pull-bearing payment methods (erc3009, permit2), the quote returns two EIP-712 payloads: the intent (`eip712`) and the origin-pull authorization (`pull_authorization`). Sign both; send `signature` + `pull_signature` on execute. Non-pulling methods (pimlico, x402, mpp, approval) use a single signature. Resources: - OpenAPI: https://xochi.fi/openapi.yaml - Discovery manifest: https://xochi.fi/.well-known/agents.json - Live solver capability matrix (chains, tokens, order bounds): https://api.xochi.fi/api/capabilities - Reference token prices (USD, DeFi Llama, 60s edge cache): https://api.xochi.fi/api/prices -- each price carries `sources[symbol]` (`defillama`, or `fallback` for a static price served while Llama is down or omits the coin) and `updated_at[symbol]` (Llama's print time, unix seconds). A fallback price is not a market rate. - Full protocol docs: https://xochi.fi/llms-full.txt - Pay-per-call (x402) endpoints: see /.well-known/agents.json `x402.endpoints` - Elixir agent SDK: raxol_payments (https://github.com/axol-io/raxol) ## Links - Website: https://xochi.fi - Whitepaper: https://xochi.fi/whitepaper - Learn (one-pager): https://xochi.fi/learn - Terms: https://xochi.fi/terms - Privacy: https://xochi.fi/privacy ## Documentation - [Whitepaper](https://xochi.fi/whitepaper): Technical specification - [Learn](https://xochi.fi/learn): One-page protocol summary - [OpenAPI](https://xochi.fi/openapi.yaml): Machine-readable API spec for agent integration