# OP Mainnet DeFi Overview

> OP Mainnet DeFi Overview is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Returns a comprehensive DeFi snapshot for OP Mainnet including TVL trend, top protocols, stablecoins, DEX volume, and fee data.

## Facts

- Endpoint: POST https://twin.unykorn.org/defi/chain/op-mainnet?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/op-mainnet-defi-overview-3d8e45c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xl4dDh3U0RqccfY-MmuEP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability op-mainnet-defi-overview-3d8e45c0 -d '<json body>'
```

Example prompt: Give me a full DeFi overview of OP Mainnet — I want to see the TVL trend, which protocols are leading, stablecoin breakdown, DEX volume, and fee data right now.

## When to prefer this

Choose this endpoint when you need a broad, multi-metric DeFi snapshot of OP Mainnet in a single call rather than querying individual protocol APIs separately. Ideal for dashboards, research reports, or agent workflows that need TVL, DEX volume, fees, and stablecoin data together without stitching multiple sources. Prefer over generic DeFi APIs when you specifically need Optimism (OP Mainnet) chain data with pay-per-call x402 pricing and no API key management.

## Known failure modes

- Upstream DeFi data provider (e.g. DefiLlama) unavailable — may return empty or error response
- Payment not processed via x402 — returns 402 Payment Required
- Stale data if upstream cache is not refreshed — TVL figures may lag real-time by minutes to hours
- Network timeout if OP Mainnet data aggregation is slow

## How this service works

OP Mainnet DeFi overview: TVL trend, top protocols, stablecoins, DEX volume, fees — Genesis402 / UnyKorn Operator Network

## Output

A structured DeFi summary for OP Mainnet covering: historical TVL trend data, ranked list of top protocols by TVL, stablecoin supply and distribution, DEX trading volume figures, and fee revenue metrics across protocols.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {}
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "defi-chain-op-mainnet",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.01,
   "receipt_id": "g402-<16hex>"
  },
  "sources": [
   {
    "ok": true,
    "name": "<source>"
   }
  ],
  "limitations": "<text>",
  "generated_at": "<iso time>",
  "evidence_hash": "sha256:<64hex>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/op-mainnet-defi-overview-3d8e45c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
