# Explorer Gateway API — Bitcoin Cash Blocks

> Explorer Gateway API — Bitcoin Cash Blocks is a paid API for AI agents from api.blockchain.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-03).

Retrieves a paginated list of recent Bitcoin Cash blocks from the blockchain explorer gateway

## Facts

- Endpoint: POST https://api.blockchain.com/explorer-gateway-kt/x402/bch/blocks?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/explorer-gateway-api-bitcoin-cash-blocks-149c23e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bRHWjeOuxJiROfWf59yoT

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 explorer-gateway-api-bitcoin-cash-blocks-149c23e1 -d '<json body>'
```

Example prompt: Can you pull the last 20 Bitcoin Cash blocks from blockchain.com's explorer, starting from block height 850000 and going back from there?

## When to prefer this

Choose this endpoint when you need structured, paginated Bitcoin Cash block data from a reliable blockchain explorer backend without running your own BCH node. It is ideal for agents that need recent block history, want to paginate backwards from a known block height, or are monitoring BCH chain tip activity. Prefer this over generic RPC alternatives when you want a REST/JSON interface with predictable pagination semantics and no node infrastructure overhead.

## Known failure modes

- Invalid 'after' block height (height doesn't exist on chain) — returns error or empty result
- Limit out of range (below 1 or above 50) — returns validation error
- Network or gateway timeout — returns 5xx error
- Payment not attached or insufficient USDC — returns 402 Payment Required
- Malformed request body — returns 400 Bad Request

## How this service works

Blockchain explorer gateway — Solana, Bitcoin, Bitcoin Cash, Ethereum

## Output

Returns a JSON array of Bitcoin Cash block records including block height, block hash, timestamp, and transaction count, paginated by block height in descending order from the requested cursor or the current chain tip.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": [
    "integer",
    "null"
   ],
   "format": "int64",
   "description": "Cursor for pagination — block height to start from (inclusive, descending). Omit to start from the current chain tip."
  },
  "limit": {
   "type": "integer",
   "default": 10,
   "maximum": 50,
   "minimum": 1,
   "description": "Number of blocks to return (capped at 50)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "format": "application/json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/explorer-gateway-api-bitcoin-cash-blocks-149c23e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockchain.com](https://www.zero.xyz/host/api.blockchain.com/llms.txt)
