# Beggar Bot L1 Fee Estimator (Base mainnet)

> Beggar Bot L1 Fee Estimator (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).

Estimates the L1 (Ethereum mainnet) data fee component for a transaction on Base or Optimism OP-stack chains

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/l1fee?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-l1-fee-estimator-base-mainnet-6b184333
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1nTPYhlxLGTeoL-PEdb6I

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-l1-fee-estimator-base-mainnet-6b184333
```

Example prompt: What's the estimated L1 fee for an ERC-20 transfer on Base mainnet — can you calculate it using the raw transaction hex 0x02f87...?

## When to prefer this

Use this endpoint when you need to accurately estimate the L1 (Ethereum mainnet) data fee portion of a transaction on Base or Optimism before submitting it. This is distinct from L2 execution gas; the L1 fee is the rollup's cost to post calldata to Ethereum. Prefer this when building cost-aware agents that need to quote total transaction fees on OP-stack chains, especially for USDC transfers, native transfers, or swaps.

## Known failure modes

- Invalid or malformed hex transaction bytes returns an error
- Unsupported chain value returns a 400 or validation error
- Missing required query parameters may result in a default estimate or error
- Payment not provided or insufficient USDC results in HTTP 402 Payment Required
- Network issues with Base/Optimism RPC nodes may cause timeouts

## 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 estimated L1 fee (in wei or USDC) for the given transaction type and chain, broken down by the data-posting cost to Ethereum mainnet from the specified OP-stack L2.

## 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": {
      "data": {
       "type": "string",
       "description": "hex tx bytes (optional)"
      },
      "kind": {
       "type": "string",
       "description": "native_transfer|erc20_transfer|swap"
      },
      "chain": {
       "type": "string",
       "description": "base|optimism|base-sepolia"
      }
     }
    }
   },
   "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-l1-fee-estimator-base-mainnet-6b184333/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)
