# chainquery getnodeaddresses

> chainquery getnodeaddresses 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 known peer addresses from the Bitcoin Core node's address manager via pay-per-call RPC

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getnodeaddresses
- 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-getnodeaddresses-3663552b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AOQcOnJMe12fUOihFsKPh

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-getnodeaddresses-3663552b
```

Example prompt: Give me a list of known peer addresses from the Bitcoin Core node — use getnodeaddresses and return up to 10 results.

## When to prefer this

Use this endpoint when you need to discover known Bitcoin network peers without running your own node, want pay-per-call access with no API key setup, and need real data from a live Bitcoin Core instance via the x402 micropayment protocol.

## Known failure modes

- Invalid JSON in params query parameter returns RPC parse error
- Requesting more addresses than available returns fewer results with no error
- Node connectivity issues may return an empty array
- Payment failure (402) if USDC balance is insufficient
- Malformed GET request returns 400 bad request

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Known peer addresses from the node's address manager. Bitcoin Core getnodeaddresses.

## Output

A JSON object with a 'result' field containing an array of known peer address entries from the Bitcoin Core node's address manager, each including IP address, port, network type, and service flags.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "params": "[10]"
  }
 }
}
```

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-getnodeaddresses-3663552b/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)
