# Beggar Bot Code Match Utility (Base mainnet)

> Beggar Bot Code Match Utility (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).

Looks up and matches smart contract code or address patterns across specified blockchain networks on Base mainnet

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/codematch?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-code-match-utility-base-mainnet-9b2a4387
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-gRd6ilIBD4NxGTcoBk0B

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-code-match-utility-base-mainnet-9b2a4387
```

Example prompt: Can you check if the contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 matches any known code patterns on Base mainnet using Beggar Bot's codematch utility?

## When to prefer this

Use this endpoint when you need to identify or match the bytecode/code patterns of a smart contract deployed on Base mainnet or Base Sepolia. It is specifically suited for agents operating in the Base ecosystem that need to verify contract identity, audit unknown contracts, or perform cross-chain code fingerprinting. Prefer this over generic blockchain explorers when you need a programmatic, pay-per-call API with x402 micropayment support.

## Known failure modes

- Invalid or missing address parameter returns an error
- Unsupported chain value in the chains CSV causes rejection
- Missing required 'type' or 'method' input fields return a validation error
- Payment not completed via x402 results in HTTP 402 response requiring USDC payment
- Rate limiting or worker errors may return 5xx responses
- Address with no on-chain code (EOA wallet) may return empty or null match result

## 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 response containing code match results for the queried 0x address across specified chains, indicating whether the contract bytecode or code fingerprint matches known patterns on Base mainnet (or base-sepolia if specified).

## 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": {
      "chains": {
       "type": "string",
       "description": "csv"
      },
      "address": {
       "type": "string",
       "description": "0x address"
      }
     }
    }
   },
   "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-code-match-utility-base-mainnet-9b2a4387/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)
