# Blockchain Address Validator

> Blockchain Address Validator is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-20).

Validates a cryptocurrency address across EVM, Solana, and Bitcoin chains, returning checksum status, address type, and validity flags.

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/address-validate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-address-validator-4abe6223
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NpQD9Oy-LkQWUz62_EhK9

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 blockchain-address-validator-4abe6223 -d '<json body>'
```

Example prompt: Can you validate the Ethereum address 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb0 and tell me whether it's a smart contract or a regular wallet?

## When to prefer this

Choose this endpoint when you need lightweight, multi-chain address format validation without running a full node — especially useful before executing on-chain transactions, whitelisting addresses, or onboarding user wallets. The optional EVM contract-code check on Base distinguishes EOAs from smart contracts without a separate RPC call. At $0.001/call with no API key required, it suits high-volume agent pipelines that need pay-per-use billing via x402.

## Known failure modes

- Empty or missing address field returns a validation error
- Address string exceeding 128 characters is rejected
- Unrecognized address format returns valid=false with chain=unknown
- eth_getCode call on Base may fail if the RPC is unavailable, leaving type as unknown
- Malformed request_id pattern causes request rejection

## How this service works

41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.

## Output

A JSON object containing: a boolean validity flag, the detected chain, address type (eoa, contract, or unknown), whether EIP-55 checksum passed, the checksummed form of the address, a zero-address flag, notes about formatting issues, warnings, a confidence score, suggested next skill calls, and timestamps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "evm",
    "solana",
    "bitcoin",
    "auto"
   ],
   "type": "string",
   "default": "auto"
  },
  "address": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1,
   "description": "Address to validate"
  },
  "check_code": {
   "type": "boolean",
   "default": false,
   "description": "When chain is evm, call eth_getCode on Base to set type eoa|contract"
  },
  "request_id": {
   "type": "string",
   "pattern": "^[A-Za-z0-9._:-]+$",
   "maxLength": 64,
   "minLength": 1,
   "description": "Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "type": "unknown",
   "chain": "evm",
   "notes": [
    "all-lowercase or all-uppercase: EIP-55 not asserted"
   ],
   "valid": true,
   "is_zero": false,
   "checksum_ok": true,
   "checksummed": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb0"
  },
  "next": [
   "erc20_meta",
   "name_resolve",
   "token_risk"
  ],
  "skill": "address_validate",
  "charged": true,
  "service": "address_validate",
  "sources": [
   {
    "url": "eip-55+base58+bech32",
    "name": "local",
    "fetched_at": "2026-10-24T14:00:00Z"
   }
  ],
  "summary": "valid evm checksummed=0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb0",
  "version": "1.0.0",
  "warnings": [],
  "confidence": 1,
  "data_as_of": "2026-10-24T14:00:00Z",
  "generated_at": "2026-10-24T14:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-address-validator-4abe6223/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
