# Beggar Bot Batch Decode (Base Mainnet)

> Beggar Bot Batch Decode (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-22).

Batch-decodes EVM calldata against a target contract on Base mainnet, returning decoded function calls and parameters as JSON.

## Facts

- Endpoint: POST https://beggar-bot-demand.beggarbot.workers.dev/v1/batchdecode?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-batch-decode-base-mainnet-06b70e89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BCvnTfNnUGxKHQHjl6cbI

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-batch-decode-base-mainnet-06b70e89 -d '<json body>'
```

Example prompt: Can you batch decode this calldata 0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000000000005f5e100 against the Base mainnet USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?

## When to prefer this

Use this endpoint when you need to batch-decode raw EVM calldata against a specific Base mainnet contract in one call, particularly for debugging transactions, auditing on-chain interactions, or reverse-engineering smart contract calls. Prefer this over single-call decoders when you have multiple calldata payloads to decode simultaneously. It is purpose-built for Base mainnet and uses the x402 micropayment protocol, making it ideal for agent workflows that already operate in the Base/USDC ecosystem.

## Known failure modes

- Invalid or malformed 0x calldata returns a decode error
- Unknown function selector not present in contract ABI returns null or unrecognized
- Invalid contract address returns a lookup failure
- Network errors on Base mainnet RPC return 5xx or timeout
- Insufficient USDC payment ($0.02) triggers x402 payment-required response
- Passing non-hex or missing data field returns a 400 validation 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 containing the decoded representation of the submitted calldata, including the matched function selector, function name, and ABI-decoded input parameters for each entry in the batch, derived from the target contract's ABI on Base mainnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "target contract"
  },
  "data": {
   "type": "string",
   "description": "0x calldata"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-batch-decode-base-mainnet-06b70e89/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)
