# Chain Heartbeat — Blockchain Network Health & Gas Status

> Chain Heartbeat — Blockchain Network Health & Gas Status is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-14).

Returns the current health, latest block, gas price, fee trend, and finality status for a specified blockchain network

## Facts

- Endpoint: GET https://store.agentexchange.work/chain/heartbeat
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chain-heartbeat-blockchain-network-health-gas-status-71ac3182
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wqPylm41x194H6O-lFWSH

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 chain-heartbeat-blockchain-network-health-gas-status-71ac3182
```

Example prompt: What's the current health of the Base network — can you check the latest block age and gas price right now?

## When to prefer this

Choose this endpoint when you need a single unified snapshot of a chain's operational status — health, gas, latest block, and finality — in one call, rather than making separate eth_blockNumber, eth_gasPrice, and sync-status RPC calls. Ideal for pre-flight checks before submitting transactions, real-time dashboards, or agent decision loops that need to know if a chain is safe to interact with right now.

## Known failure modes

- Unsupported chain name returns an error or defaults to Base
- Network or RPC outage may return degraded health status or timeout
- Invalid query parameter format returns a 400-level error
- Payment not included or insufficient USDC triggers a 402 Payment Required response

## How this service works

Machine-payable data APIs for AI agents across web search, on-chain reads, trading data, market judgment, and AI visibility. The canonical x402 catalog currently exposes 85 paid routes. Pay per call in USDC via x402 on Base. No API keys, no signup.

## Output

A JSON object containing: the chain name and EIP-155 chain ID, a health string (e.g. 'HEALTHY'), the latest block number and its age in seconds, the current gas price in gwei, a fee trend indicator (e.g. 'flat'), and the safe and finalized block numbers for finality tracking.

## 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",
     "properties": {
      "chain": {
       "type": "string",
       "description": "base|ethereum|optimism|arbitrum|polygon|gnosis|robinhood (default base)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "gas": {
       "type": "object"
      },
      "fees": {
       "type": "object"
      },
      "health": {
       "type": "string"
      },
      "latest": {
       "type": "object"
      },
      "chain_id": {
       "type": "number"
      },
      "finality": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gas": {
   "price_gwei": 0.006
  },
  "fees": {
   "trend": "flat"
  },
  "chain": "base",
  "health": "HEALTHY",
  "latest": {
   "age_seconds": 2,
   "block_number": 49464704
  },
  "chain_id": 8453,
  "finality": {
   "safe_block": 49464680,
   "finalized_block": 49464620
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chain-heartbeat-blockchain-network-health-gas-status-71ac3182/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
