# DeFi Shield Chain Health Monitor

> DeFi Shield Chain Health Monitor 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 real-time health metrics for a specified blockchain including TVL, gas prices, block production status, finality details, and chain type

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/chain/health
- 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-dfc47bf8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wPvP9quWtBW8U1mE7SDCH

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-dfc47bf8 -d '<json body>'
```

Example prompt: Can you check the current health of the Base chain — I want to know its TVL, gas prices, block production status, and whether it's active right now?

## When to prefer this

Use this endpoint when you need a quick, unified snapshot of a blockchain's health — combining TVL, gas, and block production into one call. Ideal for DeFi agents that need to decide whether a chain is suitable for a transaction, monitor network conditions before executing a swap or bridge, or surface infrastructure status to users. Prefer this over separate gas or TVL APIs when you need a holistic chain-level view in a single request.

## Known failure modes

- Unsupported chain name returns error or empty response
- Chain temporarily unreachable results in degraded or null metrics
- latest_block may be null if chain indexer is unavailable
- Network timeout if upstream data provider is slow
- Invalid chain identifier returns validation error

## Output

A JSON object containing the chain name, chain ID, chain type (e.g. Optimistic Rollup), active status, TVL in USD, gas prices (fast/standard/slow in gwei), finality period description, latest block (if available), block production status, response time in milliseconds, and a UTC timestamp of the query.

## Example request

```json
{
 "input": {
  "body": {
   "chain": "base"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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": "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-dfc47bf8/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)
