# Explorer Gateway API — Bitcoin Cash Blocks

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

Returns a paginated list of recent Bitcoin Cash blocks from the blockchain explorer, starting from the chain tip or a specified block height.

## Facts

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

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

Example prompt: Show me 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 a paginated list of Bitcoin Cash blocks from Blockchain.com's explorer — particularly useful for traversing BCH chain history, monitoring recent block production, or building analytics on block-level data. Prefer this over generic BCH node RPC calls when you want a hosted, pay-per-call REST interface without running your own node.

## Known failure modes

- Invalid 'after' cursor (non-existent block height) may return empty results or an error
- Limit exceeding 50 will be rejected or clamped
- Payment failure (x402 protocol) if USDC balance is insufficient — 402 response
- Network or chain data unavailability may return a 500 or timeout
- Malformed JSON body returns a 400 bad request

## How this service works

Paid AI-agent access to Blockchain.com Explorer API

## Output

A JSON array of Bitcoin Cash block objects in descending order by height, including metadata such as block height, hash, timestamp, and transaction count. Up to 50 blocks returned per request, paginated via block height cursor.

## 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-f9eec155/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockchain.info](https://www.zero.xyz/host/api.blockchain.info/llms.txt)
