# Beggar Bot Auth Payload Generator (Base Mainnet)

> Beggar Bot Auth Payload Generator (Base Mainnet) 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-23).

Generates an x402 payment authorization payload that an agent can use to authenticate and pay for downstream Beggar Bot utility calls on Base mainnet.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/authpayload?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-auth-payload-generator-base-mainnet-77ed6d67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zYOp30O4AyMhRsI6fAONn

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-auth-payload-generator-base-mainnet-77ed6d67
```

Example prompt: Generate an x402 payment auth payload so I can pay 0.01 USDC from my wallet 0xABC...123 to Beggar Bot's address 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7 on Base mainnet, valid for 300 seconds.

## When to prefer this

Use this endpoint when your agent needs to programmatically construct an x402 payment authorization payload before calling any paid Beggar Bot utility (verify, risk, receipt) on Base mainnet or Base Sepolia. It is the free, pre-flight step in the Beggar Bot payment flow — unlike the paid utility endpoints, this call is free and idempotent, making it safe to call repeatedly to refresh credentials.

## Known failure modes

- Missing required query params (to, from, amount) returns a 400 or error JSON
- Invalid Ethereum address format for 'to' or 'from' returns a validation error
- Unsupported chain identifier returns an error
- Amount formatted incorrectly (non-decimal string) may cause payload generation failure
- Expired or malformed output if valid_seconds is set to an unusually low value

## 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

Returns a JSON object containing a structured x402 authorization payload — including the payment destination, amount, token, chain, payer address, and validity window — ready to be attached as a payment header or credential when calling paid Beggar Bot endpoints like /v1/verify, /v1/risk, or /v1/receipt.

## 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",
     "properties": {
      "to": {
       "type": "string",
       "description": "0x pay_to"
      },
      "from": {
       "type": "string",
       "description": "0x payer"
      },
      "chain": {
       "type": "string",
       "description": "base|..."
      },
      "token": {
       "type": "string",
       "description": "0x or usdc"
      },
      "amount": {
       "type": "string",
       "description": "USDC decimal"
      },
      "valid_seconds": {
       "type": "string",
       "description": "default 300"
      }
     }
    }
   },
   "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-auth-payload-generator-base-mainnet-77ed6d67/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)
