# Base Gas Price Oracle

> Base Gas Price Oracle is a paid API for AI agents from x402-v2-mint-base-gas-price.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-28).

Returns the current gas price on the Base blockchain network, optionally including the latest block number.

## Facts

- Endpoint: POST https://x402-v2-mint-base-gas-price.vercel.app/v1/base-gas-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-price-oracle-a4a1c9ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fLsvpxtGy5hvgF5HEPVRs

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-a4a1c9ee -d '<json body>'
```

Example prompt: What's the current gas price on Base right now — and can you also include the latest block number so I can cross-reference the timing?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call lookup of the current Base network gas price without managing your own RPC node or API key. Ideal for agents that need real-time gas data infrequently (avoiding subscription costs) or for workflows that require atomic micropayment-gated data access via the x402 protocol. Prefer alternatives if you need historical gas price data, gas price predictions, or multi-chain gas comparisons.

## Known failure modes

- RPC node unavailable — Base network connectivity issues causing lookup failure
- Invalid request_id format causing request rejection
- Payment failure via x402 protocol resulting in 402 response before data is returned
- Rate limiting or quota exceeded for the endpoint
- Stale or delayed gas price data if the underlying Base RPC is lagging

## How this service works

Base mainnet gas price via public RPC (keyless). eth_gasPrice (+ optional latest block). Data only — not advice.

## Output

Returns a JSON object with an 'ok' boolean indicating success, the skill name ('base-gas-price'), a 'charged' flag confirming the $0.002 USDC micropayment was processed, a summary status string, and optionally the latest block number if include_block was set to true.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request_id": {
   "type": "string"
  },
  "include_block": {
   "type": "boolean",
   "default": false,
   "description": "Also return latest blockNumber"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "base-gas-price",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-price-oracle-a4a1c9ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-base-gas-price.vercel.app](https://www.zero.xyz/host/x402-v2-mint-base-gas-price.vercel.app/llms.txt)
