# Base Toolbox – Gas Price Lookup

> Base Toolbox – Gas Price Lookup is a paid API for AI agents from basetoolbox.cartonpliant.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the current Base network gas price (base fee in gwei and estimated 21k-gas transfer cost in wei)

## Facts

- Endpoint: POST https://basetoolbox.cartonpliant.workers.dev/v1/base-gas
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-toolbox-gas-price-lookup-a9c42542
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qVKGmOuWzaGpyFCpKUgsY

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-toolbox-gas-price-lookup-a9c42542 -d '<json body>'
```

Example prompt: What's the current gas price on Base right now — give me the base fee in gwei and how much a standard 21,000-gas transfer would cost in wei?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001 USDC) real-time gas price on Base L2 without needing a CoinGecko API key or running your own RPC node. Ideal for preflight transaction checks, DeFi bots, and gas-gating logic on the Base network specifically. Prefer over general Ethereum mainnet gas APIs when the target chain is Base.

## Known failure modes

- Network or RPC failure — ok: false with error message
- Rate limiting from the underlying Base RPC node
- Stale data if the Base node is temporarily behind
- Invalid request body format — may return 400 or empty response

## How this service works

Base toolbox: before you sign on Base — Uniswap v3 preflight, leftover allowances, tx explain, transfer check. $0.10 USDC. Also $0.001 price/gas/ENS. GET /v1/constants free. No CoinGecko key.

## Output

A JSON object with three fields: 'ok' (boolean indicating success), 'base_fee_gwei' (current Base network base fee as a decimal number in gwei, e.g. 0.02), and 'transfer_21k_wei' (estimated cost in wei for a standard 21,000-gas ETH transfer as a string, e.g. '420000000000').

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object"
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "base_fee_gwei": 0.02,
  "transfer_21k_wei": "420000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-toolbox-gas-price-lookup-a9c42542/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from basetoolbox.cartonpliant.workers.dev](https://www.zero.xyz/host/basetoolbox.cartonpliant.workers.dev/llms.txt)
