# Optimism Superchain Recent Block Transaction Data

> Optimism Superchain Recent Block Transaction Data is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-25).

Returns transaction counts, gas usage, and block metadata for the latest N blocks on the Optimism (OP Mainnet) Superchain

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/optimism-superchain-tx?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/optimism-superchain-recent-block-transaction-data-4c17ffb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8GpkP0TiR4sZOZZe6Whvm

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 optimism-superchain-recent-block-transaction-data-4c17ffb5
```

Example prompt: What's the current transaction throughput and gas usage on Optimism mainnet? Pull the last 7 blocks so I can see how busy the network is.

## When to prefer this

Use this endpoint when you need real-time, on-chain Optimism block and transaction data without signing up for an API key. Ideal for agents monitoring network conditions, checking L2 throughput before submitting transactions, or building dashboards. Prefer this over Ethereum mainnet endpoints when your focus is specifically the Optimism/OP Superchain L2 layer.

## Known failure modes

- Optimism RPC node unavailable or rate-limited — upstream connectivity error
- Invalid blocks parameter (outside 2-10 range) — returns validation error
- Payment failure via x402 — call not charged on failure
- Network congestion causing slow block fetch — increased latency

## How this service works

OP Mainnet (Optimism) recent blocks from the public RPC: transactions per block, gas used per block, block time, and the transaction rate over the last N blocks (1 to 10). Sequencer revenue and Superchain-wide totals are not in this RPC and are not reported.

## Output

A JSON object containing an array of recent blocks (each with blockNumber, timestamp, txCount, gasUsed, gasLimit, gasUsedPct), plus aggregate metrics: txPerSecond, avgBlockTimeSec, tipBlockNumber, the source RPC URL, and a checkedAt timestamp.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "blocks": {
       "type": "string",
       "description": "How many latest blocks to read, 2 to 10 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "blocks": [
   {
    "gasUsed": 3969759,
    "txCount": 16,
    "gasLimit": 40000000,
    "timestamp": "2026-10-23T09:35:49.000Z",
    "gasUsedPct": 9.92,
    "blockNumber": 158574686
   },
   {
    "gasUsed": 7340968,
    "txCount": 16,
    "gasLimit": 40000000,
    "timestamp": "2026-10-23T09:35:51.000Z",
    "gasUsedPct": 18.35,
    "blockNumber": 158574687
   }
  ],
  "source": "https://mainnet.optimism.io",
  "checkedAt": "2026-10-23T09:35:59.780Z",
  "txPerSecond": 9.75,
  "tipBlockNumber": 158574690,
  "avgBlockTimeSec": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/optimism-superchain-recent-block-transaction-data-4c17ffb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
