# Base Mainnet Gas Price Oracle

> Base Mainnet Gas Price Oracle is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Returns current Base mainnet gas metrics: latest block, base fee, priority fee, suggested max fee in gwei, and the ETH cost of a typical USDC transfer.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/base-gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-mainnet-gas-price-oracle-9862043a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1msxEb7Zm0Bt45fyNnUIM

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-mainnet-gas-price-oracle-9862043a -d '<json body>'
```

Example prompt: What are the current gas fees on Base mainnet — I need the base fee, priority fee, suggested max fee in gwei, and how much a USDC transfer would cost in ETH right now?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, no-LLM lookup of current Base mainnet gas conditions, especially the EIP-1559 base fee, priority fee, suggested max fee, and the concrete ETH cost of a USDC transfer. It is simpler and cheaper than calling an RPC node directly and requires no Web3 credentials.

## Known failure modes

- Upstream RPC node unavailable — returns a 5xx error
- Stale data if the render instance is cold-starting (possible latency spike)
- No meaningful input validation failure since the input field is ignored

## How this service works

Current Base mainnet gas: latest block, base fee and priority fee in gwei, a suggested max fee, and the ETH cost of a typical USDC transfer. Input: any text, e.g. 'base'. Deterministic, no LLM.

## Output

A JSON object containing: the latest block number, network identifier (eip155:8453), Unix timestamp, base fee in gwei, priority fee in gwei, suggested max fee in gwei, and the ETH cost of a typical USDC transfer on Base mainnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "Any text, e.g. \"base\" (the call takes no real input)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 53341001,
  "network": "eip155:8453",
  "timestamp": 1793471349,
  "base_fee_gwei": 0.005,
  "priority_fee_gwei": 0.001,
  "suggested_max_fee_gwei": 0.011,
  "usdc_transfer_cost_eth": 3.9e-7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-mainnet-gas-price-oracle-9862043a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
