# Base Network Gas Price Oracle

> Base Network Gas Price Oracle is a paid API for AI agents from x402op-edge-39830b.fly.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Returns current gas price data for the Base (or Base Sepolia) network via a pay-per-call x402 micropayment API.

## Facts

- Endpoint: POST https://x402op-edge-39830b.fly.dev/p/base-gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-gas-price-oracle-1f54a859
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pj_-ObWW0HPyYTFFjdfdy

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-network-gas-price-oracle-1f54a859 -d '<json body>'
```

Example prompt: What's the current gas price on Base mainnet right now?

## When to prefer this

Choose this endpoint when your agent needs real-time Base network gas prices specifically — especially in automated DeFi workflows, pre-transaction cost checks, or when optimizing transaction timing on Base mainnet or Base Sepolia testnet. Prefer this over general Ethereum gas oracles when you are specifically working on the Base L2.

## Known failure modes

- Invalid network value (not 'base' or 'base-sepolia') returns a validation error
- Payment failure or insufficient USDC balance causes a 402 response without data
- Network connectivity issues to Base RPC may cause timeouts or stale data
- Rate limiting if payment verification fails

## How this service works

Pay-per-call JSON APIs for AI agents, paid per request with x402 (USDC on Base).

## Output

Returns current gas price data for the specified Base network (mainnet or Sepolia testnet), enabling agents to estimate transaction costs before submission. Response includes gas price metrics relevant to the Base L2 network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "enum": [
    "base",
    "base-sepolia"
   ],
   "type": "string",
   "default": "base"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-gas-price-oracle-1f54a859/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402op-edge-39830b.fly.dev](https://www.zero.xyz/host/x402op-edge-39830b.fly.dev/llms.txt)
