# X402 Pay-To Address Matcher

> X402 Pay-To Address Matcher is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-23).

Validates that a pay-to address in an x402 payment challenge matches an expected merchant address, returning acceptance or rejection with mismatch reasons.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/x402-pay-to-match?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-pay-to-address-matcher-e4ea522a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A5uiNszZQycuJ3a7-PKg9

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 x402-pay-to-address-matcher-e4ea522a -d '<json body>'
```

Example prompt: Before we pay this x402 challenge, check whether the pay-to address '0xAbC123...' actually matches the expected merchant address '0xDEF456...' and tell me if it's safe to proceed.

## When to prefer this

Choose this endpoint when you need a lightweight, deterministic, no-external-dependency check to confirm that an x402 challenge's pay-to address equals an expected merchant address before committing to payment or accepting agent delivery. It is ideal for pre-payment security gates in automated x402 payment flows where address spoofing or misconfiguration is a risk. Prefer it over manual string comparison because it returns structured evidence, mismatch reasons, and a versioned JSON acceptance decision suitable for audit trails.

## Known failure modes

- Missing or empty pay_to or expected fields returns a validation error
- Addresses exceed 8192 character limit causing rejection
- Malformed or non-address strings may cause parse errors or automatic rejection
- Network timeout if the service is temporarily unavailable

## How this service works

X402 Pay To Match: X402 Pay To Match compares challenge pay-to address with an expected merchant address from bounded caller-supplied values without an external provider. Call X402 Pay To Match before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Pay To Match as versioned deterministic JSON. Price: $0.0…

## Output

Returns a versioned deterministic JSON object containing: an explicit accept or reject status, contract-specific validation checks, normalized evidence of both addresses, and detailed mismatch reasons if the addresses do not match.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pay_to": {
   "type": "string",
   "maxLength": 8192,
   "description": "Pay To supplied to X402 Pay To Match; used only for this bounded calculation and processed in memory without retention."
  },
  "expected": {
   "type": "string",
   "maxLength": 8192,
   "description": "Expected supplied to X402 Pay To Match; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "actual": "0x1111111111111111111111111111111111111111",
   "matched": true,
   "expected": "0x1111111111111111111111111111111111111111"
  },
  "schema": "delx/util-x402-pay-to-match/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "b108f77ef3414c0bad5305e638ab373474fdd56f39a323d1bf49d6743754c925",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_pay_to_match"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-pay-to-address-matcher-e4ea522a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
