# Saylor Innovations Bitcoin Address Validator

> Saylor Innovations Bitcoin Address Validator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Validates a Bitcoin address by checking base58check or bech32/bech32m checksums and returns the network, address type, and encoding

## Facts

- Endpoint: GET https://saylorinnovations.com/api/tools/btc-address?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-bitcoin-address-validator-d14951ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cpNyfyTKXf3sKiCM7GzqR

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 saylor-innovations-bitcoin-address-validator-d14951ab
```

Example prompt: Can you check whether bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq is a valid Bitcoin address and tell me what type it is and which network it belongs to?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call Bitcoin address validation that covers all modern address types (legacy P2PKH, P2SH, native SegWit P2WPKH, and taproot P2TR) and returns structured metadata including network and encoding — particularly useful in automated pipelines (e.g. wallets, exchanges, payment processors) that need to gate on address correctness before executing a transaction.

## Known failure modes

- Missing required 'address' query parameter returns an error response
- Completely garbled non-address string returns valid=false with a reason explaining the failure
- Testnet addresses may be identified as testnet rather than invalid — callers should check network field
- Address with valid checksum but unsupported type may return unknown type field
- Network timeouts or service unavailability return HTTP 5xx errors
- Payment required (HTTP 402) if x402 payment is not provided or fails

## How this service works

Bitcoin address validator - checks base58check and bech32/bech32m checksums, returns network, address type (P2PKH, P2SH, P2WPKH, taproot) and encoding

## Output

Returns a JSON object with: address (the input), valid (boolean), network (e.g. mainnet/testnet), type (P2PKH, P2SH, P2WPKH, P2TR, etc.), encoding (base58check or bech32/bech32m), witness_version (for SegWit addresses), program_hex (the decoded witness program), checked_at (UTC timestamp), and reason (error description if invalid).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Bitcoin address to validate"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "address",
      "valid"
     ],
     "properties": {
      "type": {
       "type": [
        "string",
        "null"
       ],
       "description": "Type or kind"
      },
      "valid": {
       "type": "boolean",
       "description": "True when the input passed validation"
      },
      "reason": {
       "type": [
        "string",
        "null"
       ]
      },
      "address": {
       "type": "string",
       "description": "Account or contract address"
      },
      "network": {
       "type": [
        "string",
        "null"
       ],
       "description": "Network name"
      },
      "encoding": {
       "type": [
        "string",
        "null"
       ],
       "description": "Encoding used"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      },
      "program_hex": {
       "type": [
        "string",
        "null"
       ],
       "description": "Program hex"
      },
      "witness_version": {
       "type": [
        "number",
        "null"
       ],
       "description": "Witness version"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-bitcoin-address-validator-d14951ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
