# Base Network Gas Price API

> Base Network Gas Price API is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the current gas price on the Base (Ethereum L2) network in both wei and gwei, fetched live from a public RPC endpoint with no API key required.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/gas/base
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-gas-price-api-15a1d031
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tvn21pX8a96Cx7_5Gq1Z6

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-api-15a1d031
```

Example prompt: What's the current gas price on Base right now — give me both the gwei and wei values?

## When to prefer this

Choose this endpoint when you need a quick, free-of-friction gas price check on Base with no API key setup — ideal for agents that need live Base gas data in a simple GET call. Prefer it over manual RPC calls when you want a pre-parsed gwei + wei response with a timestamp. Not suitable if you need gas price history, gas estimates for specific transaction types, or multi-chain comparisons in a single call.

## Known failure modes

- Public RPC endpoint may be temporarily unavailable or rate-limited, resulting in a 5xx error
- Stale data if the RPC call times out and a cached value is returned
- Render.com cold-start latency if the service has been idle, causing a slow first response
- Network congestion on Base may cause brief RPC failures

## How this service works

Current gas price on Base (Ethereum L2), read live via a public RPC endpoint — no API key, no aggregator. No parameters.

## Output

A JSON object containing the chain identifier ('base'), a UTC timestamp of when the data was fetched (fetched_at), the current gas price in wei (gas_price_wei as a string), and the gas price in gwei (gas_price_gwei as a float). No parameters required.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "fetched_at": "2026-09-01T12:00:00.000Z",
  "gas_price_wei": "6000000",
  "gas_price_gwei": 0.006
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-gas-price-api-15a1d031/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
