# Base Gas Oracle

> Base Gas Oracle is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns current gas price estimates for the Base blockchain, including base fee, priority fee, and cost estimates for common operations like native ETH transfers.

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/gas-oracle?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-oracle-a37fcee6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P4pcOtZtD13V9KFBNYbs6

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 base-gas-oracle-a37fcee6
```

Example prompt: What's the current gas price on the Base network right now — give me the base fee, priority fee, and an estimate of what a simple ETH transfer would cost?

## When to prefer this

Use this endpoint when you need real-time gas price data specifically for the Base L2 network, especially when building transaction cost estimators, DApps that display fee previews, or automation that times transactions around low gas periods. It requires no API keys and charges per call in USDC via x402.

## Known failure modes

- Network or RPC unavailability returns an error response
- Stale data if Base node is temporarily lagging
- Payment failure (insufficient USDC on Base) returns HTTP 402
- Malformed or missing query parameters return a 4xx error

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with the current chain name ('base'), native token ('ETH'), base fee in gwei, total gas price in gwei, priority fee in gwei, and a breakdown of estimated costs for common operations (e.g., native ETH transfer: 21,000 gas units and cost in ETH).

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "estimates": {
   "native_transfer": {
    "gas_units": 21000,
    "cost_native": 0.00014
   }
  },
  "native_token": "ETH",
  "base_fee_gwei": 0.005,
  "gas_price_gwei": 0.006,
  "priority_fee_gwei": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-oracle-a37fcee6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
