# Base Gas Price Oracle

> Base Gas Price Oracle is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Returns current Base (L2) network gas price estimates including low/medium/high fee tiers, ETH/USD price, and USDC transfer cost estimates

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/base/gas?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-price-oracle-640793d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QfkKmgLVm6TxjMGEYI-i8

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-price-oracle-640793d0
```

Example prompt: Before I send this USDC on Base, check the current gas prices — give me the low, medium, and high fee estimates and tell me roughly what a USDC transfer would cost in USD right now.

## When to prefer this

Use this endpoint when an agent needs real-time Base L2 gas fee data before executing a transaction, estimating USDC transfer costs, or deciding when to submit a transaction based on network congestion. Prefer this over generic Ethereum gas APIs when operating specifically on Base (chain ID 8453). The Chainlink-sourced ETH/USD price makes it reliable for cost estimation in USD terms.

## Known failure modes

- Network unavailability of Base RPC may return stale or error data
- Chainlink oracle may have delayed ETH/USD price during low-activity periods
- Cached results (cached: true) may not reflect the very latest block
- No input validation errors expected as this is a parameter-free GET endpoint

## How this service works

Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.

## Output

Returns a JSON object with current Base network gas data including: timestamp, chain ID, low/medium/high fee tiers (max_fee_gwei and max_priority_fee_gwei), current base_fee_gwei, next expected base_fee_gwei, base fee trend (flat/rising/falling), ETH/USD price sourced from Chainlink, estimated gas units and total USD cost for a USDC transfer, average gas used ratio, current block number, and whether the result was cached.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": 1791020277,
  "chain": "base",
  "tiers": {
   "low": {
    "max_fee_gwei": 0.010001,
    "max_priority_fee_gwei": 0.000001
   },
   "high": {
    "max_fee_gwei": 0.014,
    "max_priority_fee_gwei": 0.004
   },
   "medium": {
    "max_fee_gwei": 0.011005,
    "max_priority_fee_gwei": 0.001005
   }
  },
  "cached": false,
  "eth_usd": 2684.15,
  "chain_id": 8453,
  "estimates": {
   "usdc_transfer": {
    "gas_units": 65000,
    "total_eth": "0.000000391412",
    "total_usd": 0.001051,
    "total_wei": "391411534872"
   }
  },
  "elapsed_ms": 52,
  "block_number": 52115465,
  "base_fee_gwei": 0.005,
  "base_fee_trend": "flat",
  "eth_usd_source": "Chainlink ETH/USD (Base)",
  "avg_gas_used_ratio": 0.08,
  "next_base_fee_gwei": 0.005
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-price-oracle-640793d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
