# DeFi Shield L2 Finality Data

> DeFi Shield L2 Finality Data is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Returns detailed Layer 2 finality information for a given chain, including rollup type, sequencer, challenge period, block time, soft/hard finality, and data availability method.

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/chain/l2-finality
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-c3cfad10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fTnJCzjkxkPiKJ4C7oquD

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 defi-shield-hazel-vercel-app-c3cfad10 -d '<json body>'
```

Example prompt: Can you pull the L2 finality details for Base — I want to know the rollup type, who the sequencer is, the challenge period, and how long both soft and hard finality take?

## When to prefer this

Use this endpoint when you need structured, canonical L2 finality metadata for a specific chain — especially rollup type, challenge period, and sequencer details — rather than raw on-chain data. Ideal for DeFi risk assessment, cross-chain bridging decisions, or explaining Layer 2 security assumptions to users.

## Known failure modes

- Unsupported or unrecognized chain name returns an error or empty result
- Network timeout if upstream chain data is unavailable
- Null values for liveness or latest_block if real-time data is unavailable
- Malformed request body returns 4xx error

## Output

Returns a JSON object with the chain name, chain ID, rollup type (e.g. Optimistic Rollup / OP Stack), sequencer identity, soft finality duration (sequencer confirmation), hard finality duration (challenge period), block time, data availability mechanism, liveness status, latest block, and response timestamp.

## Example request

```json
{
 "chain": "base"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "chain": {
       "type": "string",
       "description": "L2 chain name (default: base)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-c3cfad10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
