# Beggar Bot x402 Challenge Checker

> Beggar Bot x402 Challenge Checker is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-18).

Validates and decodes x402 payment challenge objects, checking whether a 402 response or payment header matches expected payTo address, network, and amount before an agent commits to paying

## Facts

- Endpoint: POST https://beggar-bot-demand.beggarbot.workers.dev/v1/x402check?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-x402-challenge-checker-2c068586
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WuYGI8QGKTAfMh8mIJW2B

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 beggar-bot-x402-challenge-checker-2c068586 -d '<json body>'
```

Example prompt: Before paying this 402 challenge, check it against Beggar Bot — the payTo should be 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7 on Base mainnet for $0.01 USDC — here's the raw challenge body: {"accepts":[{"scheme":"exact","network":"base","amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7"}]}

## When to prefer this

Use this endpoint when an AI agent needs to inspect and validate an x402 402-payment-required challenge before committing USDC — especially to guard against payTo address substitution attacks or unexpected amounts. Prefer this over manual parsing when the challenge may be a raw base64 header, a JSON body, or an accepts array, as it handles all three formats. Best for Base mainnet and base-sepolia workflows using USDC.

## Known failure modes

- Malformed challenge object returns error with parsing details
- Mismatch between expected and actual payTo/network/amount returns a failed validation result
- Invalid base64 header string causes decoding error
- Missing required challenge field returns descriptive JSON error
- Network not supported (beyond base and base-sepolia) may return unsupported network error
- Payment required ($0.02 USDC) not included — calling agent must itself pay via x402 first

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

A JSON object indicating whether the 402 challenge is valid, decoded payment parameters (payTo address, network, token, amount), and whether the challenge matches the expected values provided in the request. Highlights any mismatches in address, network, or amount.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expect": {
   "type": "object",
   "description": "optional {payTo, network, amount|atomic}"
  },
  "challenge": {
   "type": "object",
   "description": "402 JSON body, base64 PAYMENT-REQUIRED header string, or accepts[]"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-x402-challenge-checker-2c068586/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
