# Gas Estimate (Base & Ethereum)

> Gas Estimate (Base & Ethereum) is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Returns live gas price and slow/normal/fast gas fee estimates for Base or Ethereum networks.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gas-estimate-base-ethereum-09eda146
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gUKQSvboCyHzj2zDeeSWo

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 gas-estimate-base-ethereum-09eda146
```

Example prompt: What are the current gas fees on Base — give me the slow, normal, and fast estimates in gwei.

## When to prefer this

Use this endpoint when you need real-time gas fee estimates for Base or Ethereum before submitting a transaction, optimizing transaction timing, or displaying current network costs to users. Prefer this over on-chain RPC calls when you want a simple REST interface with tiered slow/normal/fast estimates already computed.

## Known failure modes

- Invalid or missing network parameter returns an error (only 'base' and 'ethereum' are accepted)
- Upstream RPC provider unavailability may cause stale or failed responses
- Payment failure (insufficient USDC or x402 payment not processed) returns 402 Payment Required
- Network congestion may cause slight latency in real-time data freshness

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object with the network name, current base_fee_gwei, gas_price_gwei, and an estimates object containing slow and normal (and optionally fast) max_fee_gwei values — all in gwei units for the requested network.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "network": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "base",
  "estimates": {
   "slow": {
    "max_fee_gwei": 0.055
   },
   "normal": {
    "max_fee_gwei": 0.155
   }
  },
  "base_fee_gwei": 0.005,
  "gas_price_gwei": 0.006
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gas-estimate-base-ethereum-09eda146/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
