# Base Network Gas Price Lookup

> Base Network Gas Price Lookup is a paid API for AI agents from x-data-gateway.annushka1190.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current gas price on the Base mainnet blockchain in both wei and gwei units

## Facts

- Endpoint: GET https://x-data-gateway.annushka1190.workers.dev/v1/gas/base
- 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/base-network-gas-price-lookup-5c627f85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z1NHiSwjvb24Qmo6c0RZ4

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-lookup-5c627f85
```

Example prompt: What's the current gas price on Base mainnet right now, in both wei and gwei?

## When to prefer this

Choose this endpoint when you need a simple, real-time gas price figure for Base mainnet without running your own node or managing RPC credentials. It is ideal for lightweight agents, dashboards, or DeFi bots that need a quick cost-of-transaction estimate before submitting onchain actions on Base L2. It is not suitable for Ethereum mainnet, other L2s, or historical gas price data.

## Known failure modes

- RPC node temporarily unavailable — may return a 5xx error
- Network congestion causing stale or delayed gas price reading
- Invalid query parameter value (ignored gracefully, always returns Base mainnet data regardless)
- Rate limiting or payment failure resulting in 402 or 429 response

## How this service works

Current gas price on Base from public RPC (wei + gwei). Optional query network=base for schema probes. e.g. GET /v1/gas/base

## Output

A JSON object containing the network name ('base'), the current gas price in wei as a string (e.g. '1000000000'), and the current gas price in gwei as a decimal string (e.g. '1.0'). Values are sourced from the Base public RPC in real time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "network": {
       "type": "string",
       "description": "Ignored; always Base mainnet"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "base",
  "gasPriceWei": "1000000000",
  "gasPriceGwei": "1.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-gas-price-lookup-5c627f85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x-data-gateway.annushka1190.workers.dev](https://www.zero.xyz/host/x-data-gateway.annushka1190.workers.dev/llms.txt)
