# ZKsync Era Hyperchains Batch Explorer

> ZKsync Era Hyperchains Batch Explorer 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-24).

Fetches the latest batch data from the ZKsync Era (Hyperchain) mainnet, including batch size, status, transaction counts, and timestamps.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/zksync-era-hyperchains?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zksync-era-hyperchains-batch-explorer-837b8ad5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hc1T447fIJEIRfalz4IpD

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 zksync-era-hyperchains-batch-explorer-837b8ad5
```

Example prompt: Can you pull the last 10 ZKsync Era batches from mainnet and show me their sizes, statuses, and how many L2 transactions each one had?

## When to prefer this

Use this endpoint when you need structured, pay-per-call access to ZKsync Era mainnet batch data without signing up for an API key. It is ideal for agents monitoring ZKsync Era Hyperchain activity, checking batch throughput, or verifying recent L1/L2 settlement status in real time.

## Known failure modes

- Invalid limit parameter (outside 1–20 range) may return an error or default behavior
- ZKsync Era block explorer API downtime may cause failed or stale responses
- Payment failure results in no charge and no data returned
- Network timeouts from the upstream ZKsync block explorer API

## How this service works

zkSync Era rollup batches from the public block explorer API: the newest N batches (1 to 20) with batch number, time, status (sealed, committed, proven, executed), L1 and L2 transaction counts, and the chain ids where each step was posted. Hyperchain (other zkSync chains) data is not included.

## Output

Returns a JSON object containing a list of recent ZKsync Era batches (up to 20), each with batch number, size, status (e.g. 'sealed'), L1 and L2 transaction counts, timestamp, and chain IDs for commit/prove/execute. Also includes the latest batch number, total L2 transaction count across returned batches, and the time the data was checked.

## 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": {
      "limit": {
       "type": "string",
       "description": "How many of the newest batches, 1 to 20 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 5,
  "source": "https://block-explorer-api.mainnet.zksync.io/batches?limit=5",
  "batches": [
   {
    "size": 371,
    "number": 519099,
    "status": "sealed",
    "l1TxCount": 3,
    "l2TxCount": 368,
    "timestamp": "2026-10-23T08:45:11.000Z",
    "executedAt": null,
    "proveChainId": null,
    "commitChainId": 1,
    "executeChainId": null
   },
   {
    "size": 244,
    "number": 519098,
    "status": "sealed",
    "l1TxCount": 1,
    "l2TxCount": 243,
    "timestamp": "2026-10-23T08:15:07.000Z",
    "executedAt": null,
    "proveChainId": null,
    "commitChainId": 1,
    "executeChainId": null
   }
  ],
  "checkedAt": "2026-10-23T09:36:09.369Z",
  "l2TxTotal": 1269,
  "latestBatch": 519099
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zksync-era-hyperchains-batch-explorer-837b8ad5/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)
