# Otto AI Base Gas Oracle

> Otto AI Base Gas Oracle is a paid API for AI agents from x402.ottoai.services, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns current Base chain gas data including base fee, legacy gas price, and slow/standard/fast EIP-1559 priority-fee tiers with ready-to-sign maxFeePerGas values, refreshed every minute.

## Facts

- Endpoint: GET https://x402.ottoai.services/gas-oracle
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/otto-ai-base-gas-oracle-dcd883c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iowrBUQ-y_xFUCmgDxh0X

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 otto-ai-base-gas-oracle-dcd883c1
```

Example prompt: What are the current slow, standard, and fast gas fee recommendations on Base right now, including the maxFeePerGas I should use for each tier?

## When to prefer this

Choose this endpoint when you need EIP-1559-ready gas parameters specifically for the Base chain with a transparent, reproducible formula. It is ideal for agents that need to sign and submit transactions on Base and want slow/standard/fast tiering without guesswork. Prefer it over generic gas APIs when you need the exact maxFeePerGas formula documented alongside the values, or when you want p25/p50/p90 percentile-based tiers rather than opaque heuristics.

## Known failure modes

- RPC degradation: meta.degraded=true with potentially stale data
- Network unavailability: HTTP 5xx if Otto's RPC is unreachable
- Stale data: stalenessSec field may indicate the data is older than expected
- Payment failure: HTTP 402 if x402 payment is not provided or insufficient

## How this service works

Base gas oracle from Otto's own RPC: current base fee (wei+gwei), legacy gas price, and slow/standard/fast EIP-1559 priority-fee tiers (p25/p50/p90 over the last 20 blocks) with a ready-to-sign maxFeePerGas per tier. Unlike the crowded gas shelf it PUBLISHES the formula, so every tier is reproducible from the response. Flat JSON, refreshed every minute. Base gas oracle, gas price, priority fee, EIP-1559, maxFeePerGas. $0.001 per call.

## Output

A flat JSON object containing: current baseFeePerGas in wei and gwei, legacy gasPrice, slow/standard/fast priority fee tiers (p25/p50/p90 over last 20 blocks) with maxFeePerGas and maxPriorityFeePerGas per tier in both wei and gwei, network congestion level, block window metadata, the reproducible formula used to compute tiers, and a generatedAt timestamp.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "chain": "base",
   "window": {
    "blocks": 20,
    "congestion": "low",
    "oldestBlock": 50738536,
    "avgGasUsedRatio": 0.1132
   },
   "chainId": 8453,
   "formula": "priorityFee tiers = mean of the p25/p50/p90 priority-fee tips over the last 20 blocks (eth_feeHistory); suggested maxFeePerGas = baseFeePerGas*2 + tierTip.",
   "gasPrice": {
    "wei": "6000000",
    "gwei": 0.006
   },
   "suggested": {
    "fast": {
     "maxFeePerGasWei": "12500000",
     "maxFeePerGasGwei": 0.0125,
     "maxPriorityFeePerGasGwei": 0.0025
    },
    "slow": {
     "maxFeePerGasWei": "10000000",
     "maxFeePerGasGwei": 0.01,
     "maxPriorityFeePerGasGwei": 0
    },
    "standard": {
     "maxFeePerGasWei": "10250000",
     "maxFeePerGasGwei": 0.01025,
     "maxPriorityFeePerGasGwei": 0.00025
    }
   },
   "generatedAt": "2026-09-01T12:01:00.000Z",
   "baseFeePerGas": {
    "wei": "5000000",
    "gwei": 0.005
   },
   "priorityFeePerGas": {
    "fast": 0.0025,
    "slow": 0,
    "unit": "gwei",
    "standard": 0.00025
   }
  },
  "meta": {
   "degraded": false,
   "validUntil": "",
   "generatedAt": "",
   "stalenessSec": 0
  },
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/otto-ai-base-gas-oracle-dcd883c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ottoai.services](https://www.zero.xyz/host/x402.ottoai.services/llms.txt)
