# Phoenix Zero L2 Health Oracle

> Phoenix Zero L2 Health Oracle is a paid API for AI agents from rtt.phoenix-ai.work, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns real-time health metrics for 12 L2 chains including P99/P95 RTT, revert ratios, gas pressure, blob base fee, and an execution safety recommendation

## Facts

- Endpoint: GET https://rtt.phoenix-ai.work/api/v1/health
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phoenix-zero-l2-health-oracle-68ae16d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SKMcMU3YQPEZ4dRq7y0Ck

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 phoenix-zero-l2-health-oracle-68ae16d5
```

Example prompt: Before I submit this transaction, check the current L2 sequencer health across Base, Arbitrum, and Optimism — I need to know if there are any stalls, what the revert ratios look like, and whether it's safe to execute right now.

## When to prefer this

Choose this endpoint when you need a single aggregated health snapshot across all major L2 chains simultaneously, especially when you need kernel-level RTT precision from eBPF probes rather than RPC polling heuristics. Prefer this over chain-specific RPC calls when making cross-chain routing decisions or pre-flight safety checks before high-value transactions, as it provides a unified execution recommendation rather than raw data you'd have to interpret yourself.

## Known failure modes

- Payment not included or invalid — 402 response requiring x402 USDC payment
- Upstream sequencer probe failure — partial data returned with stale timestamps for affected chains
- Rate limiting if called excessively — 429 response
- Service unavailable — 503 if eBPF probe infrastructure is down
- Malformed response if a chain is newly unsupported or deprecated

## How this service works

Real-time L2 sequencer health across 12 chains (Base, Arbitrum, Optimism, zkSync, Blast, Linea, Mantle, Mode, Scroll, Taiko, Polygon zkEVM, Casper). Returns kernel-level P99/P95 RTT from eBPF probes, revert ratios, gas pressure, and execution recommendation.

## Output

A JSON object containing per-chain health data (P99/P95 RTT in ms, stall flag, last-updated timestamp) for all 12 supported chains (Base, Arbitrum, Optimism, zkSync, Blast, Linea, Mantle, Mode, Scroll, Taiko, Polygon zkEVM, Casper), plus global metrics: L1 gas price in gwei, EIP-4844 blob base fee, Arbitrum revert ratio, Base revert ratio, an ISO 8601 UTC timestamp, and a top-level recommendation enum (SAFE_TO_EXECUTE, ELEVATED_RISK, HIGH_RISK, or STALL_DETECTED).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chains": {
       "type": "object",
       "description": "Per-chain P99/P95 RTT in ms, stall flag, last-updated unix timestamp. Chains: base, arbitrum, optimism, zksync, blast, linea, mantle, mode, scroll, taiko, polygon_zkevm, casper"
      },
      "timestamp": {
       "type": "string",
       "description": "ISO 8601 UTC timestamp"
      },
      "gas_pressure": {
       "type": "number",
       "description": "L1 gas price in gwei"
      },
      "blob_base_fee": {
       "type": "number",
       "description": "EIP-4844 blob base fee"
      },
      "recommendation": {
       "enum": [
        "SAFE_TO_EXECUTE",
        "ELEVATED_RISK",
        "HIGH_RISK",
        "STALL_DETECTED"
       ],
       "type": "string"
      },
      "arb_revert_ratio": {
       "type": "number",
       "description": "Fraction of reverted txs on Arbitrum (0.0-1.0)"
      },
      "base_revert_ratio": {
       "type": "number",
       "description": "Fraction of reverted txs on Base (0.0-1.0)"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phoenix-zero-l2-health-oracle-68ae16d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rtt.phoenix-ai.work](https://www.zero.xyz/host/rtt.phoenix-ai.work/llms.txt)
