# chainquery Bitcoin getconnectioncount RPC

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

Returns the number of active peer connections to chainquery's independent Bitcoin full node via pay-per-call x402 protocol

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getconnectioncount
- 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/chainquery-bitcoin-getconnectioncount-rpc-775be5fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v6PHovomlVq5jfjm8Rgl1

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-getconnectioncount-rpc-775be5fb
```

Example prompt: How many peer connections does the chainquery Bitcoin full node currently have? Just call their pay-per-call getconnectioncount RPC endpoint.

## When to prefer this

Use this endpoint when you need a real-time, trustless peer connection count from an independent Bitcoin full node without setting up API keys — ideal for monitoring Bitcoin network health, checking node connectivity, or building dashboards that need live Bitcoin node stats and are willing to pay micro-amounts per call via x402.

## Known failure modes

- Payment failure or insufficient USDC balance returns HTTP 402 Payment Required
- Node temporarily unavailable returns HTTP 503 or connection error
- Invalid params array format returns RPC error response
- Rate limiting or capacity issues may return HTTP 429

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Number of peer connections from chainquery's independent full node. Bitcoin Core getconnectioncount.

## Output

Returns a JSON object with a `result` field containing an integer representing the number of active peer connections to the chainquery Bitcoin Core full node at the time of the query.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-bitcoin-getconnectioncount-rpc-775be5fb/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)
