# chainquery Bitcoin Core getpeerinfo

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

Returns per-peer connection details for every node currently connected to chainquery's independent Bitcoin full node via Bitcoin Core getpeerinfo RPC.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getpeerinfo
- Price: $0.01/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-core-getpeerinfo-a89e1063
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pdfQInb2Plf8Q8Tt39sxM

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-core-getpeerinfo-a89e1063
```

Example prompt: Show me the current peer connections on the chainquery Bitcoin full node — I want to see each peer's IP, version, latency, and sync status without setting up my own node.

## When to prefer this

Use this endpoint when you need real-time peer connection data from a Bitcoin full node without operating your own infrastructure. Ideal for network monitoring, debugging, or research tasks that require Bitcoin Core getpeerinfo output on demand with pay-per-call pricing and no API key setup.

## Known failure modes

- Payment failure (402): insufficient USDC balance or x402 payment not processed correctly
- Node temporarily offline: chainquery full node unavailable, returns 5xx error
- Empty result: node has no active peer connections at query time
- Rate limiting: too many rapid requests to the same endpoint

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Per-peer connection details for every node connected to chainquery's independent full node. Bitcoin Core getpeerinfo.

## Output

A JSON array of objects, one per connected peer, each containing fields such as peer ID, IP address and port, network type, version, subversion string, connection direction (inbound/outbound), services, ping time, bytes sent/received, block height synced, and ban score — mirroring the standard Bitcoin Core getpeerinfo RPC response.

## 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": "getpeerinfo result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-bitcoin-core-getpeerinfo-a89e1063/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)
