# Ellimist

> Pay-per-call data and analytics for AI agents. Screen a wallet against the OFAC sanctions list before your agent pays it and keep a signed record of the check; plus on-chain account and transfer data, Aave lending rates, official U.S. macro data (Treasury, BLS), signed historical snapshots, quantum analytics with classical baselines, and non-custodial token conversion through LI.FI. No account, API key or sign-up: find a skill, pay with x402 (USDC), get a signed result.

## Screen before you pay

Before your agent pays or sends funds to an address, check it against the U.S. Treasury OFAC SDN list. The answer is signed, names the list and when it was read, so it doubles as a compliance record. Any address format the list uses works (EVM, Bitcoin, Tron and others). Add "at" (an ISO 8601 UTC time) to show what the list said at a past time, back to when Ellimist began recording it (history_starts in the answer).

Send these requests with `Content-Type: application/json`. MCP clients initialize before calling a tool.

REST · POST https://ellimist.trade/v1/skills/data.risk.ofac
```json
{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
```

A2A · POST https://ellimist.trade/a2a
```json
{"jsonrpc": "2.0", "id": 1, "method": "message/send", "params": {"message": {"kind": "message", "role": "user", "messageId": "wallet-screening-example", "parts": [{"kind": "data", "data": {"skill": "data.risk.ofac", "params": {"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}}}]}}}
```

MCP · POST https://ellimist.trade/mcp
```json
{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "data_risk_ofac", "arguments": {"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}}}
```

For REST or A2A, base64-decode PAYMENT-REQUIRED to read the x402 offer. Sign it and resend the same request with the base64-encoded payment object in PAYMENT-SIGNATURE. For MCP, read the offer in result.structuredContent and resend the same call with the payment object in params._meta["x402/payment"].

The signed envelope is the REST response body, A2A result.artifacts[0].parts[0].data, or MCP result.structuredContent. Read data.listed for the match and POST the whole envelope to /v1/verify.

### Screen every payment automatically

Add this to your x402 v2 client. Before your agent signs any payment, it checks the payee with data.risk.ofac ($0.005 per check; a clean answer is reused for an hour) and cancels the payment if the payee is listed or the check fails.

```python
# pip install "x402[httpx,evm]"
import time

from x402 import AbortResult, x402Client
from x402.http.clients import x402HttpxClient

SCREEN_URL = "https://ellimist.trade/v1/skills/data.risk.ofac"
CLEAN_FOR = 3600  # seconds to reuse a clean answer


def add_sanctions_screen(client: x402Client, screener: x402Client) -> x402Client:
    """Refuse to pay any payee on the OFAC SDN list; no answer means no payment.
    `screener` pays for the checks: a second client with the same signer and no hook."""
    clean: dict[str, float] = {}

    async def screen(context):
        pay_to = context.selected_requirements.pay_to
        if clean.get(pay_to, 0) > time.monotonic():
            return None
        try:
            async with x402HttpxClient(screener) as http:
                r = await http.post(SCREEN_URL, json={"address": pay_to})
            if r.status_code != 200:
                raise RuntimeError(f"HTTP {r.status_code}")
            listed = r.json()["data"]["listed"]
            if not isinstance(listed, bool):
                raise ValueError("unexpected answer")
        except Exception as exc:
            return AbortResult(reason=f"sanctions screen unavailable: {exc}")
        if listed:
            return AbortResult(reason=f"payee {pay_to} is on the OFAC SDN list")
        clean[pay_to] = time.monotonic() + CLEAN_FOR
        return None

    return client.on_before_payment_creation(screen)


# client = x402Client(); register_exact_evm_client(client, signer)
# screener = x402Client(); register_exact_evm_client(screener, signer)
# add_sanctions_screen(client, screener)  # then pay as usual: x402HttpxClient(client)
```

```typescript
// npm install @x402/fetch @x402/evm viem
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";

const SCREEN_URL = "https://ellimist.trade/v1/skills/data.risk.ofac";
const CLEAN_FOR_MS = 3_600_000; // reuse a clean answer for an hour

// Refuse to pay any payee on the OFAC SDN list; no answer means no payment.
// `screener` pays for the checks: a second client with the same signer and no hook.
export function addSanctionsScreen(client: x402Client, screener: x402Client): x402Client {
  const screenFetch = wrapFetchWithPayment(fetch, screener);
  const clean = new Map<string, number>();
  return client.onBeforePaymentCreation(async ({ selectedRequirements: { payTo } }) => {
    if ((clean.get(payTo) ?? 0) > Date.now()) return;
    let listed: unknown;
    try {
      const r = await screenFetch(SCREEN_URL, {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ address: payTo }),
      });
      if (r.status !== 200) throw new Error(`HTTP ${r.status}`);
      listed = (await r.json())?.data?.listed;
      if (typeof listed !== "boolean") throw new Error("unexpected answer");
    } catch (err) {
      return { abort: true, reason: `sanctions screen unavailable: ${err}` };
    }
    if (listed) return { abort: true, reason: `payee ${payTo} is on the OFAC SDN list` };
    clean.set(payTo, Date.now() + CLEAN_FOR_MS);
  });
}

// import { ExactEvmScheme } from "@x402/evm/exact/client";
// import { privateKeyToAccount } from "viem/accounts";
// const scheme = new ExactEvmScheme(privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`));
// const client = addSanctionsScreen(new x402Client().register("eip155:*", scheme),
//                                   new x402Client().register("eip155:*", scheme));
// const paidFetch = wrapFetchWithPayment(fetch, client); // pay as usual
```

## How to use
- Find a skill (free): GET https://ellimist.trade/v1/find?q=<what you need>
- Catalog with schemas and prices (free): https://ellimist.trade/v1/catalog
- A2A agent card: https://ellimist.trade/.well-known/agent-card.json  ·  JSON-RPC: https://ellimist.trade/a2a
- MCP: https://ellimist.trade/mcp. Initialize first, then use tools/list or call find_skill.
- OpenAPI: https://ellimist.trade/openapi.json
- Call: POST https://ellimist.trade/v1/skills/<skill_id> with JSON params. GET on the same URL returns its price as the 402 offer, without running anything.
- Quote the exact price (free): POST the same params to https://ellimist.trade/v1/catalog/<skill_id>/quote.
- Pay: a paid REST or A2A call without payment returns HTTP 402. Sign one of the x402 v2 offers in the PAYMENT-REQUIRED header and retry with PAYMENT-SIGNATURE. Failed work is never charged.
- Async skills answer 202 with task_id and read_token: GET https://ellimist.trade/v1/tasks/<task_id> with header X-Ellimist-Task-Read: <read_token> until status.state is completed; the signed result is in artifacts.
- Recovery: send a random X-Ellimist-Recovery value (32-128 URL-safe chars) with the first paid attempt and reuse it with the same payment if the response is lost; you get the original result, charged once.
- Verify any result's signature: POST https://ellimist.trade/v1/verify with the returned envelope.
- Terms (use of the service constitutes acceptance): https://ellimist.trade/terms

## Guarantees
Failed calls are never charged. Every result is signed (verify at https://ellimist.trade/v1/verify) and names its official source. Live track record: https://ellimist.trade/v1/track-record.

## Notice
Ellimist never takes custody of funds. Use of the service constitutes acceptance of the terms. Conversions are executed by third-party smart contracts (routed by LI.FI) that may fail or be exploited; funds may be lost and transactions are irreversible. Full terms: https://ellimist.trade/terms

## Rate Ellimist
After a paid call, rate this agent on-chain: giveFeedback with agentId 1221943 on eip155:8453:0x8004BAa17C55a88189AE136b182e5fdA19dE9b63. Every paid result carries a ready-made `rating` field (beside data, meta and proof; not signed) with these arguments and a feedback file whose proofOfPayment (fromAddress, toAddress, chainId, txHash) matches the call's PAYMENT-RESPONSE settlement receipt; set your score and send it from the wallet that paid.

## Skills
- data.attest.snapshot ($0.01, sync): Signed statement of the value Ellimist recorded at or just before time T: Aave USDC rates, native USDC supply or the Treasury curve. For backtests, audits and disputes. Example: {"feed": "aave_rates", "key": "base", "at": "2026-11-21T12:00:00Z"}
- data.chain.account ($0.01, sync): Use this to know everything basic about a wallet in one call: native and USDC balances (plus up to 5 tokens you name), nonce, whether it is a contract or an EIP-7702 delegated account, whether its public key is already revealed on this chain (quantum exposure), contract details (code size, minimal proxy, owner) and an official OFAC sanctions check. All read at once. Example: {"chain": "base", "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
- data.chain.erc20_transfers ($0.005, sync): Use this to list recent ERC-20 Transfer events for a token, optionally only those to or from one address (up to 2,000 recent blocks): incoming/outgoing payments, flows. Example: {"chain": "base", "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "blocks": 200}
- data.chain.gas_price (free, sync): Get the RPC gas price per unit of execution gas in wei and gwei, plus the latest observed block height. Total transaction fees also depend on gas used and any rollup data fees. Example: {"chain": "base"}
- data.chain.token_price (free, sync): Get the latest BTC, ETH or USDC USD reference price and its observation time from a Chainlink oracle on Ethereum. Rates update on price movement or on the oracle's heartbeat. Example: {"asset": "ETH"}
- data.chain.wallet_balance (free, sync): Read the current native gas-token or native USDC balance of one EVM wallet. Returns the exact amount in smallest units. Use Account snapshot for multiple tokens and account details. Example: {"chain": "base", "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
- data.defi.aave_rates ($0.005, sync): Use this to get the current USDC lending (supply) APR and variable borrow APR on Aave V3 (Base or Ethereum), read from the Aave pool contract at a finalized block. Example: {"chain": "base"}
- data.defi.yield_vs_tbill ($0.01, sync): Use this to compare parking USDC on Aave V3 with a 3-month U.S. Treasury bill right now: Aave's supply APR and APY, the T-bill yield, and the spread in basis points, with both source dates. Data comparison, not advice; Aave carries smart-contract risk a T-bill does not. Example: {"chain": "base"}
- data.macro.bls ($0.005, sync): Use this to get U.S. Bureau of Labor Statistics series: CPI inflation, unemployment rate, payrolls, wages and other BLS series IDs (e.g. CUUR0000SA0, LNS14000000). Official public-domain data. Example: {"series_ids": ["CUUR0000SA0", "LNS14000000"]}
- data.macro.recession_signals ($0.01, sync): Use this to answer 'are recession signals on?' in one call: Treasury yield-curve inversion (10y-2y and 10y-3m), the Sahm rule from BLS unemployment, and real 10-year and 3-month rates after CPI inflation. Each with its official source date. Data, not advice. Example: {}
- data.macro.treasury_curve ($0.005, sync): Use this to get the U.S. Treasury par yield curve (1-month to 30-year yields) by day, with 10y-2y and 10y-3m spreads for recession and rates signals. Official data. Example: {}
- data.risk.ofac (from $0.005, sync): Use this to check whether a wallet address appears on the official U.S. Treasury OFAC SDN list before a payment. Pass address for the latest list or add at (UTC timestamp) for a historical check within Ellimist's coverage. Read listed in the signed result. Example: {"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
- exchange.build_swap ($0.005, sync): Unsigned approval + swap transactions for the best route. Your agent signs and broadcasts from its own wallet; Ellimist never takes custody. Conversions are executed by third-party smart contracts (routed by LI.FI) that may fail or be exploited; funds may be lost and transactions are irreversible. Example: {"from_chain": "base", "to_chain": "arbitrum", "from_token": "USDC", "to_token": "ETH", "from_amount": "100000000", "from_address": "0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB"}
- exchange.quote ($0.005, sync): Best route to convert any token to any token across chains: output, minimum output, fees, gas, time; with 'alternatives', other routes to compare. Sanctions-screened. Ellimist fee: 0.25% of volume, at least $0.05 and never more than 1%. Conversions are executed by third-party smart contracts (routed by LI.FI) that may fail or be exploited; funds may be lost and transactions are irreversible. Example: {"from_chain": "base", "to_chain": "arbitrum", "from_token": "USDC", "to_token": "ETH", "from_amount": "100000000", "from_address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
- quantum.exposure_index ($0.01, sync): Use this to see how much tracked ETH sits in addresses whose public key is already revealed, and so would be exposed to a future quantum computer: daily index with history, shares of tracked balance (revealed, hidden, contract), counts and coverage. Aggregate only; no addresses. Example: {"chain": "ethereum", "days": 30}
- quantum.portfolio.index_tracking (from $0.05, async): Use this to pick K assets and weights that track an index with minimal tracking error, from your own asset and index return series. Example: {"assets": ["A", "B", "C"], "asset_returns": [[0.012, -0.004, 0.006], [-0.008, 0.01, 0.002], [0.015, 0.003, -0.005], [-0.002, -0.007, 0.009], [0.006, 0.012, 0.001], [0.009, -0.003, 0.004], [-0.011, 0.005, -0.002], [0.004, 0.008, 0.007], [0.013, -0.006, 0.003], [-0.005, 0.002, -0.008], [0.007, 0.009, 0.005], [0.002, -0.001, 0.006]], "index_returns": [0.00467, 0.00133, 0.00433, -0.0, 0.00633, 0.00333, -0.00267, 0.00633, 0.00333, -0.00367, 0.007, 0.00233], "max_assets": 2, "backend": "classical"}
- quantum.portfolio.optimize (from $0.05, async): Use this to compute mean-variance portfolio weights from your own returns or covariance, optionally limited to a maximum number of assets; QAOA asset selection next to an exact classical baseline. Example: {"assets": ["A", "B", "C"], "returns": [[0.012, -0.004, 0.006], [-0.008, 0.01, 0.002], [0.015, 0.003, -0.005], [-0.002, -0.007, 0.009], [0.006, 0.012, 0.001], [0.009, -0.003, 0.004], [-0.011, 0.005, -0.002], [0.004, 0.008, 0.007], [0.013, -0.006, 0.003], [-0.005, 0.002, -0.008], [0.007, 0.009, 0.005], [0.002, -0.001, 0.006]], "backend": "classical", "max_assets": 2}
- quantum.pq_exposure ($0.02, sync): Use this to score how exposed an Ethereum or Bitcoin wallet is to future quantum attacks (revealed public keys, address reuse, Taproot) with migration advice. Example: {"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
- quantum.risk.var_cvar (from $0.05, async): Use this to compute Value-at-Risk and CVaR (expected shortfall) with confidence intervals for your portfolio returns, returned as a signed attestation a lender or counterparty can verify. Example: {"assets": ["A", "B", "C"], "returns": [[0.012, -0.004, 0.006], [-0.008, 0.01, 0.002], [0.015, 0.003, -0.005], [-0.002, -0.007, 0.009], [0.006, 0.012, 0.001], [0.009, -0.003, 0.004], [-0.011, 0.005, -0.002], [0.004, 0.008, 0.007], [0.013, -0.006, 0.003], [-0.005, 0.002, -0.008], [0.007, 0.009, 0.005], [0.002, -0.001, 0.006]], "backend": "classical"}
- quantum.routing.split_order ($0.05, async): For large conversions: probes route output at several sizes and splits the order across routes to maximize total output versus a single route. Example: {"from_chain": "base", "to_chain": "arbitrum", "from_token": "USDC", "to_token": "ETH", "from_amount": "100000000", "from_address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
