# Beggar Bot Role Check – On-Chain Role Verification for EVM Accounts

> Beggar Bot Role Check – On-Chain Role Verification for EVM Accounts 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).

Checks whether one or more Base mainnet wallet addresses hold specific on-chain roles on a given smart contract, returning role membership results for up to 10 accounts.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/rolecheck?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-role-check-on-chain-role-verification-for-evm-accounts-112cc294
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yjzRQbo8SmxcEAkvW6acw

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-role-check-on-chain-role-verification-for-evm-accounts-112cc294
```

Example prompt: Check whether wallets 0xABC...123 and 0xDEF...456 hold the 'admin' or 'minter' roles on contract 0x789...GHI on Base mainnet.

## When to prefer this

Use this endpoint when you need to verify on-chain role membership (RBAC) for one or more EVM wallet addresses against a specific smart contract on Base mainnet or Base Sepolia. It is purpose-built for access control checks in agent workflows where gating actions behind on-chain roles is required. Prefer this over general blockchain explorers when you need structured JSON role-check results ready for programmatic use, and when you can pay $0.02 USDC per call via x402.

## Known failure modes

- Invalid or malformed 0x address in accounts CSV returns a validation error
- More than 10 accounts submitted exceeds the limit and returns an error
- Contract address not found or not deployed on the specified chain may return empty or error
- Payment not received (x402) results in a 402 Payment Required response before data is returned
- Unsupported chain identifier returns an error
- Role name not found on contract may return false/empty membership rather than an error

## 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 mapping each queried wallet address to its role membership status on the specified contract and chain, indicating which of the requested roles (by name or hash) each account holds or does not hold.

## 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": {
      "chain": {
       "type": "string",
       "description": "base|ethereum|..."
      },
      "roles": {
       "type": "string",
       "description": "optional csv role names or 0x hashes"
      },
      "accounts": {
       "type": "string",
       "description": "csv 0x (max 10)"
      },
      "contract": {
       "type": "string",
       "description": "0x"
      }
     }
    }
   },
   "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-role-check-on-chain-role-verification-for-evm-accounts-112cc294/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)
