# Explorer Gateway API — Bitcoin Cash Block Lookup

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

Retrieves details for a specific Bitcoin Cash block by its hash or height

## Facts

- Endpoint: POST https://api.blockchain.info/explorer-gateway-kt/x402/bch/block?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/explorer-gateway-api-bitcoin-cash-block-lookup-6fbd99a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aRm0NsQ29Ff_5UR8WKsPS

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-block-lookup-6fbd99a4 -d '<json body>'
```

Example prompt: Can you look up the Bitcoin Cash block at height 850000 on Blockchain.com's explorer and tell me the details?

## When to prefer this

Use this endpoint when you need on-chain Bitcoin Cash block data (by hash or height) from Blockchain.com's explorer infrastructure. Prefer it over generic Bitcoin endpoints when specifically targeting BCH, and over building your own node queries when you want a paid but maintenance-free, always-available REST interface. It is ideal for agents verifying BCH transactions, auditing block history, or monitoring chain state without running a full node.

## Known failure modes

- Block hash not found — returns 404 or empty result if the hash doesn't exist on the BCH chain
- Invalid hash format — error if hash is not exactly 64 hex characters
- Block height out of range — error if height exceeds current chain tip or is negative
- Both hash and height provided — API may return an error or use one and ignore the other
- Network timeout — occasional latency spikes on heavily queried blocks
- Payment failure — x402 payment of $0.003 USDC must succeed before data is returned

## How this service works

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

## Output

Returns a JSON object containing details about the requested Bitcoin Cash block, including block hash, height, timestamp, transaction count, merkle root, miner info, and other block header fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hash": {
   "type": "string",
   "example": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
   "description": "Block hash — exactly 64 hex characters. Provide either hash or height, not both."
  },
  "height": {
   "type": "integer",
   "format": "int64",
   "example": 850000,
   "description": "Block height (non-negative integer). Provide either hash or height, not both."
  }
 }
}
```

## 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-block-lookup-6fbd99a4/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)
