# chainquery Bitcoin getblock RPC

> chainquery Bitcoin getblock RPC is a paid API for AI agents from x402.chainquery.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Fetches a full Bitcoin block by hash from chainquery's independent Bitcoin Core full node, returning header, transaction IDs, and optionally fully decoded transactions.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getblock
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainquery-bitcoin-getblock-rpc-c8380ab8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TICnWgw_-FcADb4dKTuhH

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 chainquery-bitcoin-getblock-rpc-c8380ab8
```

Example prompt: Can you pull the full Bitcoin block for hash 000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d from chainquery's Bitcoin node, including all decoded transactions?

## When to prefer this

Use this endpoint when you need full Bitcoin block data — header fields plus transactions — from an independent full node without setting up API keys. Ideal for pay-per-call usage patterns where you only occasionally need block data, or for agents that need trustless Bitcoin Core RPC access billed per call via x402/USDC.

## Known failure modes

- Invalid or unknown block hash returns an error result from Bitcoin Core
- Missing or malformed params JSON causes a parse error
- Block not yet confirmed or on a stale fork may return null
- Payment not processed (x402 flow failure) results in 402 response before data is returned
- Network or node sync issues may cause timeout or unavailable response

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. A full Bitcoin block by hash from chainquery's independent full node: header, transaction ids, and fully decoded transactions at higher verbosity. Bitcoin Core getblock.

## Output

A Bitcoin block object as returned by Bitcoin Core's getblock RPC: block header fields (hash, confirmations, height, version, merkleroot, time, nonce, bits, difficulty, chainwork, nTx), a list of transaction IDs, and at higher verbosity levels fully decoded transaction objects with inputs, outputs, scripts, and values.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "params": {
       "type": "string",
       "description": "optional: JSON-encoded array of positional RPC params"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "description": "getblock result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-bitcoin-getblock-rpc-c8380ab8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.chainquery.com](https://www.zero.xyz/host/x402.chainquery.com/llms.txt)
