# Beggar Bot EIP-1559 Gas Fee Oracle

> Beggar Bot EIP-1559 Gas Fee Oracle 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-02).

Returns current EIP-1559 gas fee estimates (base fee, slow/standard/fast tiers, priority fees, congestion level) and USD-denominated cost presets for common transaction types across Base, Ethereum, Optimism, Arbitrum, and Polygon.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/gasfee?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-eip-1559-gas-fee-oracle-5d029aeb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R4InUcNFYDjqsnFIjeSr7

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-eip-1559-gas-fee-oracle-5d029aeb
```

Example prompt: Before I send this swap transaction on Arbitrum, check the current gas fees and tell me the standard maxFeePerGas and priority fee I should use, and how much it'll cost in USD.

## When to prefer this

Use this endpoint when an AI agent needs to determine appropriate EIP-1559 gas parameters before submitting any EVM transaction, especially when USD cost budgeting matters or when targeting OP-stack chains that have an additional L1 data fee component. Prefer this over generic RPC eth_gasPrice calls when you need multi-tier fee recommendations, congestion signals, and pre-computed USD costs for standard transaction types in a single call.

## Known failure modes

- Unsupported chain name returns an error or defaults to Base
- Missing or malformed gas_limit/tx_bytes parameters may omit custom cost estimates
- RPC backend unavailability may return a 5xx error or stale data
- Very high network volatility may cause estimates to lag real mempool conditions

## 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 predicted next base fee, slow/standard/fast maxFeePerGas and maxPriorityFeePerGas values derived from feeHistory percentiles, a congestion indicator, an OP-stack L1 data fee upper bound (where applicable), and USD-denominated cost estimates for common transaction presets (ETH transfer, ERC-20 transfer, USDC EIP-3009, swap, Safe exec) or a custom gas_limit.

## 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 (default), optimism, ethereum, arbitrum, polygon, base-sepolia"
      },
      "tx_bytes": {
       "type": "string",
       "description": "optional tx size for L1 fee"
      },
      "gas_limit": {
       "type": "string",
       "description": "optional custom gas limit"
      }
     }
    }
   },
   "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-eip-1559-gas-fee-oracle-5d029aeb/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)
