# chainquery Bitcoin validateaddress RPC

> chainquery Bitcoin validateaddress 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-14).

Validates a Bitcoin address and returns its type, validity, and scriptPubKey via Bitcoin Core's validateaddress RPC, pay-per-call over x402

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/validateaddress
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainquery-bitcoin-validateaddress-rpc-a0933576
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ME_b7D1Xf0j5Aa0XKmgq1

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-validateaddress-rpc-a0933576
```

Example prompt: Is bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq a valid Bitcoin address, and what type is it — can you validate it against Bitcoin Core and show me the scriptPubKey?

## When to prefer this

Use this endpoint when you need authoritative Bitcoin Core address validation without setting up a node or managing API keys — ideal for agents verifying recipient addresses before constructing transactions, checking address type (legacy/P2SH/bech32), or extracting scriptPubKey for transaction building. Pay $0.005 USDC per call via x402 with no prior key registration.

## Known failure modes

- Invalid or malformed address string returns isvalid:false rather than an error
- Missing required params query parameter returns a 400 or RPC parse error
- Payment not provided or insufficient triggers x402 payment-required response
- Network timeout or Bitcoin Core node unavailability returns 5xx error
- Non-mainnet addresses may return isvalid:false if node is on mainnet

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Validate a Bitcoin address and return its type and scriptPubKey. Bitcoin Core validateaddress.

## Output

Returns the Bitcoin Core validateaddress result object including isvalid (boolean), address, scriptPubKey (hex), address type (e.g. witness_v0_keyhash, p2pkh, p2sh), and related metadata fields.

## Example request

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

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

## More

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