# AllTheBot Base Gas Price

> AllTheBot Base Gas Price is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Returns the current gas price, base fee, and priority fee on the Base network in gwei, plus the ETH cost of a simple transfer, with no input required.

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/base/gas?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-base-gas-price-ddecb5e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U1pDfC3hk9-Nxpxj2AVdU

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 allthebot-base-gas-price-ddecb5e8
```

Example prompt: What's the current gas price on Base right now — give me the base fee, priority fee, and how much a simple ETH transfer would cost?

## When to prefer this

Use this endpoint when you need real-time Base network gas data without any input parameters — ideal for pre-transaction checks, DeFi bots, gas fee monitoring, or deciding whether to delay a transaction. Prefer this over Ethereum mainnet gas endpoints when the target chain is specifically Base (Coinbase L2).

## Known failure modes

- Network or RPC unavailability causing stale or missing data
- API server downtime returning 5xx errors
- x402 payment failure if USDC balance is insufficient
- Response may briefly lag real-time if the underlying Base node is catching up

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns a JSON object with the current Base network block number, gas price in gwei, base fee in gwei, priority fee in gwei, and the ETH cost of a simple 21,000-gas ETH transfer. Includes a note that the L1 data fee (usually negligible on Base) is excluded.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "excludes the L1 data fee, usually very small on Base",
  "block": 52335817,
  "network": "base",
  "base_fee_gwei": "0.005220514",
  "gas_price_gwei": "0.006220514",
  "priority_fee_gwei": "0.001",
  "eth_transfer_cost_eth": "0.000000130630794"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-base-gas-price-ddecb5e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
