# Saylor Innovations Bitcoin Block Lookup

> Saylor Innovations Bitcoin Block Lookup is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Retrieves Bitcoin block metadata (time, size, weight, difficulty, transaction count, transaction IDs) by block height, hash, or latest block via Bitcoin Core RPC.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/explorer/bitcoin/block?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-bitcoin-block-lookup-9c9e9245
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HTcgvlaJtEsJsMPmAQeBu

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 saylor-innovations-bitcoin-block-lookup-9c9e9245
```

Example prompt: What are the details for Bitcoin block 840000 — show me the time, size, difficulty, and list up to 10 transaction IDs?

## When to prefer this

Use this endpoint when you need structured Bitcoin block metadata from Bitcoin Core RPC without running your own node, especially for lightweight agents that need block details by height, hash, or the latest block. Prefer it over raw RPC calls when you want a clean JSON response with normalized fields and do not need a full block explorer's historical analytics.

## Known failure modes

- Invalid block height or hash returns an error response
- Requesting a block height beyond the current chain tip returns an error
- Limit parameter outside 0–100 range may be rejected or clamped
- Network or Bitcoin Core RPC unavailability causes a timeout or 5xx error
- Malformed query parameters return a validation error

## How this service works

Bitcoin block lookup by height, hash or latest: time, size, weight, difficulty, transaction count and transaction ids, from Bitcoin Core RPC.

## Output

Returns a JSON object with chain name, block height, block hash, timestamp, confirmation count, transaction count, size in bytes, weight, difficulty, previous/next block hashes, an array of transaction IDs (up to the requested limit), a truncation flag, a note, and the data source.

## 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": {
      "block": {
       "type": "string",
       "description": "optional: block height, block hash, or latest (default)"
      },
      "limit": {
       "type": "string",
       "description": "optional 0 to 100 transaction ids to list, default 25"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "height",
      "hash",
      "time",
      "confirmations",
      "transaction_count",
      "size_bytes",
      "weight",
      "difficulty",
      "transactions",
      "transactions_truncated",
      "note",
      "source"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "description": "Hash of the item"
      },
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "time": {
       "type": "string",
       "description": "Time"
      },
      "chain": {
       "type": "string",
       "description": "Blockchain the data is for"
      },
      "height": {
       "type": "number",
       "description": "Height"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "weight": {
       "type": "number"
      },
      "difficulty": {
       "type": "number"
      },
      "size_bytes": {
       "type": "number",
       "description": "Size, in bytes"
      },
      "transactions": {
       "type": "array"
      },
      "confirmations": {
       "type": "number"
      },
      "next_block_hash": {
       "type": [
        "string",
        "null"
       ],
       "description": "Next block hash"
      },
      "transaction_count": {
       "type": "number",
       "description": "Number of transaction"
      },
      "previous_block_hash": {
       "type": [
        "string",
        "null"
       ],
       "description": "Prev
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-bitcoin-block-lookup-9c9e9245/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
