# Beggar Bot ERC-20 Token Info

> Beggar Bot ERC-20 Token Info 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-04).

Fetches ERC-20 token metadata (name, symbol, decimals, supply, holder balance) plus spam and USDC-impersonator flags for up to 20 tokens per call across multiple EVM chains

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/tokeninfo?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-erc-20-token-info-2e9ba864
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6OziG7DJ9QW8mRTXEyL6Z

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-erc-20-token-info-2e9ba864
```

Example prompt: Can you look up the token metadata for 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 and 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum — I need the name, symbol, decimals, total supply, and whether either of them is flagged as spam or a USDC impersonator?

## When to prefer this

Choose this endpoint when you need fast, keyless ERC-20 token metadata enrichment across Base, Ethereum, Optimism, Arbitrum, or Polygon — especially when you also need spam detection, USDC-impersonator flags, or holder balances in a single call. It is ideal for agents doing token validation before DeFi operations, portfolio enrichment, or fraud screening. Prefer it over raw on-chain RPC calls because it handles bytes32 symbol decoding, supply formatting, and spam heuristics automatically. Use it for batch lookups of up to 20 tokens per call.

## Known failure modes

- Invalid token address format returns an error for that address
- Requesting more than 20 tokens in one call returns a 400 error
- Unsupported chain name returns an error or falls back to Base
- Token contract that does not implement ERC-20 may return null or partial metadata
- Network or RPC timeout results in a 500 or partial response
- Payment not provided or invalid x402 payment header results in a 402 Payment Required response

## 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 per token address containing: token name, symbol (including bytes32 fallback), decimals, formatted total supply, optional holder balance if a holder address was provided, a spam flag, a USDC-impersonator flag, and an overall verdict string summarizing the token's legitimacy.

## 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": [
      "tokens"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "base (default), ethereum, optimism, arbitrum, polygon"
      },
      "holder": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "optional holder for balances"
      },
      "tokens": {
       "type": "string",
       "description": "comma list of token addresses (≤20)"
      }
     }
    }
   },
   "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-erc-20-token-info-2e9ba864/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)
