# BTC Tx Toolkit – Address Validator

> BTC Tx Toolkit – Address Validator is a paid API for AI agents from btc-tx-toolkit.stackstats.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Validates a Bitcoin address and returns its type, encoding, network, and witness version without broadcasting or storing anything

## Facts

- Endpoint: GET https://btc-tx-toolkit.stackstats.workers.dev/address/validate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/btc-tx-toolkit-address-validator-8591bd92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FnjjoI_cUr8K35LXxnQQA

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 btc-tx-toolkit-address-validator-8591bd92
```

Example prompt: Can you check if this Bitcoin address is valid and tell me what type and encoding it uses — bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh?

## When to prefer this

Choose this endpoint when you need a lightweight, read-only, pay-per-call Bitcoin address validation that returns script type, encoding, and network classification without any data retention or broadcast risk. Prefer it over full-node RPC calls or heavier blockchain APIs when you only need address metadata, not UTXO or balance data.

## Known failure modes

- Invalid or malformed address string returns valid: false with address type details omitted
- Non-Bitcoin strings (e.g. Ethereum addresses) may return valid: false
- Missing address query parameter returns an error response
- Network mismatch or unrecognized encoding may yield null fields

## How this service works

Bitcoin transaction decoder, PSBT analyzer and address validator API. Pay-per-call in USDC via x402. Read-only: nothing is broadcast, logged or stored.

## Output

A JSON object indicating whether the address is valid (boolean), its script type (e.g. p2wpkh, p2sh, p2pkh), the network (mainnet or testnet), the encoding scheme (e.g. bech32, base58), the witness version if applicable, and the input kind.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "p2wpkh",
  "valid": true,
  "network": "mainnet",
  "encoding": "bech32",
  "input_kind": "address",
  "witness_version": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/btc-tx-toolkit-address-validator-8591bd92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from btc-tx-toolkit.stackstats.workers.dev](https://www.zero.xyz/host/btc-tx-toolkit.stackstats.workers.dev/llms.txt)
