# Beggar Bot Revert Decode (Base Mainnet)

> Beggar Bot Revert 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-23).

Decodes EVM transaction revert reasons on Base mainnet into human-readable error messages

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/revertdecode?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-revert-decode-base-mainnet-05d667c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vaxqYt7BkpI1ZjWPAxLv3

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-revert-decode-base-mainnet-05d667c8
```

Example prompt: Can you decode this revert data from my failed Base mainnet transaction and tell me in plain English why it reverted: 0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000...?

## When to prefer this

Use this endpoint when you need to programmatically decode EVM revert reasons specifically on Base mainnet within an agent workflow, especially when you have raw revert hex data from a failed transaction and want a machine-readable structured explanation. Prefer this over manual ABI decoding when you need fast, pay-per-call decoding without maintaining your own ABI registry.

## Known failure modes

- Invalid or malformed revert hex data returns an error response
- Unrecognized custom error selector (ABI not available) may return partial decode
- Missing required input parameters returns a 400-level error
- Payment failure via x402 (insufficient USDC balance or wrong network) blocks the call
- Rate limiting or worker downtime may cause 5xx errors

## 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 response containing the decoded human-readable revert reason extracted from the EVM revert data, including the error type (e.g. standard Error(string), Panic code, or custom error name) and any decoded parameters associated with the revert.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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