# Bitcoin Block Lookup via x402 Micropayment

> Bitcoin Block Lookup via x402 Micropayment is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.009/call, status unknown (last checked 2026-11-17).

Fetches Bitcoin block data by block height or hash (or the chain tip) for a $0.009 USDC micropayment per call.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/btc/block?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-block-lookup-via-x402-micropayment-d8cd4083
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IER_8oIrumSoG5USFyMeL

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 bitcoin-block-lookup-via-x402-micropayment-d8cd4083
```

Example prompt: What's in Bitcoin block number 840000? Pull the full block data for me.

## When to prefer this

Use this endpoint when an AI agent needs programmatic, pay-per-call access to Bitcoin block data without setting up a full node or subscribing to a block explorer API. Ideal for lightweight, infrequent lookups where the $0.009 USDC micropayment model is preferable to monthly subscriptions. Best when the caller already supports the x402 payment protocol.

## Known failure modes

- Invalid block hash (not 64 hex characters) returns an error
- Block height out of range or not yet mined returns not found
- Payment failure or insufficient USDC balance blocks the request with HTTP 402
- Omitting both hash and height returns the chain tip (not an error, but may surprise callers)
- Network timeouts if the underlying Bitcoin node is slow

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

A JSON object with success:true and a result field containing block details such as block height, hash, timestamp, transaction count, size, and other block metadata for the requested Bitcoin block.

## 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",
     "required": [],
     "properties": {
      "hash": {
       "type": "string",
       "default": null,
       "description": "Block hash (64 hex characters); alternative to height"
      },
      "height": {
       "type": "integer",
       "default": null,
       "description": "Block height; omit height and hash for the chain tip"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-block-lookup-via-x402-micropayment-d8cd4083/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
