# Beggar Bot Payment Verification - /v1/verify

> Beggar Bot Payment Verification - /v1/verify is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Verifies that a USDC payment was made on Base mainnet (or Base Sepolia) by checking on-chain for a matching transaction given payer, payee, amount, and invoice ID

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/verify?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-payment-verification-v1-verify-d6a5b7f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LOD6cvwY4eZnvgQmc3S6E

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-payment-verification-v1-verify-d6a5b7f8
```

Example prompt: Check whether wallet 0xAbCd...1234 actually paid 0.01 USDC to 0x7192...40e7 on Base mainnet for invoice ID 'order-789' — I need to confirm the payment went through before I release the download.

## When to prefer this

Use this endpoint when you need to confirm that a specific USDC payment was made on Base mainnet or Base Sepolia for a known invoice ID, payer, and payee — especially in x402 pay-per-call agent workflows where you need trustless on-chain confirmation before releasing a resource or granting access. Prefer this over off-chain payment records when cryptographic on-chain proof is required.

## Known failure modes

- Payment not found within the scanned block range — may need to increase lookback_blocks or wait for more blocks
- Invalid Ethereum address format for payer or payee returns a validation error
- Invoice ID exceeds 64 characters or contains disallowed characters
- Network mismatch if payment was made on mainnet but base-sepolia was specified
- Lookback block limit exceeded (max 5000 on mainnet) returns an error
- x402 payment not made or incorrect amount causes the call itself to return 402 before verification runs
- RPC or Cloudflare Worker timeout for large block scans

## 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 a matching on-chain USDC payment was found for the given payer, payee, amount, and invoice ID, along with relevant transaction details if verified.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "payer",
      "payee",
      "amount",
      "invoice"
     ],
     "properties": {
      "payee": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "payee address"
      },
      "payer": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "payer address"
      },
      "amount": {
       "type": "string",
       "description": "USDC decimal amount, e.g. 0.01"
      },
      "invoice": {
       "type": "string",
       "description": "invoice id echo [\\w.:-]{1,64}"
      },
      "network": {
       "enum": [
        "base",
        "base-sepolia"
       ],
       "type": "string",
       "description": "base (default) or base-sepolia"
      },
      "lookback_blocks": {
       "type": "string",
       "description": "blocks to scan (max 5000 mainnet)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-payment-verification-v1-verify-d6a5b7f8/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)
