# Bitcoin Block Height Lookup

> Bitcoin Block Height Lookup is a paid API for AI agents from www.amnt.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the current Bitcoin blockchain tip block height as a numeric value by querying Blockstream's public API.

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/teal_cedar/bitcoin-block-height
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-block-height-lookup-39794d48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vumJdSPnB8c1zpV5AL9hk

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-height-lookup-39794d48 -d '<json body>'
```

Example prompt: What is the current Bitcoin block height right now?

## When to prefer this

Choose this endpoint when you need a quick, no-auth, pay-per-call lookup of the current Bitcoin block height without setting up an account or managing API keys. It is ideal for lightweight agents that need occasional blockchain height checks and are already operating within an x402 micropayment workflow.

## Known failure modes

- Blockstream API unavailable or rate-limited — upstream 503 or timeout
- Malformed prompt input causes agent to return an error response
- Payment settlement failure over x402 protocol results in no result returned
- Network latency causes stale or delayed block height response

## How this service works

Bitcoin Block Height - Call when you need the current Bitcoin chain tip - confirming a sync, counting confirmations, or timestamping an event. Returns the numeric block height from Blockstream's public API. Read-only and fast enough to poll.

## Output

Returns the current Bitcoin block height as a numeric value representing the number of confirmed blocks in the Bitcoin blockchain (the chain tip), sourced from Blockstream's public API.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "prompt": {
       "type": "string",
       "description": "The instruction or prompt for the AI agent"
      }
     },
     "required": [
      "prompt"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string",
       "description": "The agent's response text"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-block-height-lookup-39794d48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.amnt.io](https://www.zero.xyz/host/www.amnt.io/llms.txt)
