# Linea (Consensys) Rollup Chain Status

> Linea (Consensys) Rollup Chain Status 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).

Returns real-time block head, safe, and finalized block data plus gas metrics for the Linea (Consensys) L2 rollup chain

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/linea-consensys-rollup?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/linea-consensys-rollup-chain-status-19443cff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OZO6jZnDvPnYcum1H4o_X

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 linea-consensys-rollup-chain-status-19443cff
```

Example prompt: What's the current block height, gas price, and finalization lag on Linea mainnet right now?

## When to prefer this

Choose this endpoint when you need real-time Linea-specific chain status — block finality lag, gas prices, and block cadence — without setting up your own node or API key. Ideal for AI agents monitoring Linea network health, gating transactions on finalization, or surfacing gas cost estimates before executing on-chain operations. Prefer over generic Ethereum RPC calls when the target chain is specifically Linea (chainId 59144).

## Known failure modes

- RPC endpoint unavailable — no data returned if rpc.linea.build is unreachable
- Stale data if the Linea node is syncing or behind
- Payment failure (x402) — call not charged on failure
- Empty or malformed response if chain is undergoing a network upgrade

## How this service works

Linea zkEVM rollup telemetry from the public Linea RPC: latest sequencer block, safe block and finalized block (proven and finalized on Ethereum L1) with numbers, times and transaction counts, the finality lag in blocks and seconds, gas price (gwei), base fee, gas used % of limit and average block time over the last 20 blocks. Batch/proof IDs are not exposed by the RPC and are not reported.

## Output

Returns a JSON object with: chain name and ID, checked-at timestamp, head/safe/finalized block objects (each with block number, timestamp, gas used, gas limit, base fee in gwei, and transaction count), current gas price in gwei, average block time in seconds, gas used as a percentage of the block gas limit, and head-to-safe and head-to-finalized lag expressed in both blocks and seconds.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "head": {
   "time": "2026-10-23T09:35:49.000Z",
   "number": 32402518,
   "gasUsed": 55693,
   "gasLimit": 2000000000,
   "baseFeeGwei": 7e-9,
   "transactions": 1
  },
  "safe": {
   "time": "2026-10-23T05:17:32.000Z",
   "number": 32400752,
   "gasUsed": 59842,
   "gasLimit": 2000000000,
   "baseFeeGwei": 7e-9,
   "transactions": 1
  },
  "chain": "Linea",
  "source": "https://rpc.linea.build",
  "chainId": 59144,
  "checkedAt": "2026-10-23T09:36:10.444Z",
  "finalized": {
   "time": "2026-10-23T05:17:32.000Z",
   "number": 32400752,
   "gasUsed": 59842,
   "gasLimit": 2000000000,
   "baseFeeGwei": 7e-9,
   "transactions": 1
  },
  "headToSafe": {
   "blocks": 1766,
   "seconds": 15497
  },
  "gasPriceGwei": 0.177195,
  "avgBlockTimeSec": 10.85,
  "headToFinalized": {
   "blocks": 1766,
   "seconds": 15497
  },
  "gasUsedPctOfLimit": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/linea-consensys-rollup-chain-status-19443cff/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)
