# Seneschal Ethereum Base Fee Live Query

> Seneschal Ethereum Base Fee Live Query is a paid API for AI agents from api.seneschal.space, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the current Ethereum mainnet base fee and blob base fee for the latest block, plus the protocol-computed next-block fee projections using EIP-1559/EIP-4844 arithmetic.

## Facts

- Endpoint: GET https://api.seneschal.space/v1/q/base-fee
- 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/seneschal-ethereum-base-fee-live-query-2ebf62de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ceZ_lOiGXCLdoQ1W5yHLI

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 seneschal-ethereum-base-fee-live-query-2ebf62de
```

Example prompt: What's the current Ethereum mainnet base fee and blob base fee right now, and what does the protocol predict the next block's base fee will be?

## When to prefer this

Use this endpoint when you need a real-time, single-fact snapshot of Ethereum mainnet gas costs with protocol-accurate next-block projections derived from EIP-1559/4844 arithmetic — not a third-party estimate. Prefer this over Etherscan or other gas oracles when you want both base fee and blob base fee together in one call, or when you need the canonical protocol-level next-block fee prediction rather than a heuristic.

## Known failure modes

- Upstream Ethereum node unavailability may return 5xx errors
- Payment not included or invalid x402 token returns 402 Payment Required
- Rate limiting if too many requests are made in a short window
- Stale data if the underlying node is behind the chain tip

## How this service works

Single-fact: what does Ethereum mainnet gas cost RIGHT NOW? Returns the latest block’s base fee + blob base fee AND the consensus-computed next-block projection (not a guess — the protocol’s own EIP-1559/4844 arithmetic), straight from eth_feeHistory. Fields: {block, base_fee_gwei, blob_base_fee_gwei, gas_used_ratio, next_base_fee_gwei, next_blob_base_fee_gwei}. Bulk per-block history: /v1/premium/fee-history.csv ($0.05, up to 1024 blocks/call).

## Output

Returns a JSON object with the latest Ethereum block number, current base fee in gwei and wei, blob base fee in gwei and wei, gas used ratio, blob gas used ratio, timestamp in milliseconds, and the protocol-computed next-block projections for both base fee and blob base fee.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 23012001,
  "as_of_ms": 1765532000000,
  "next_block": 23012002,
  "base_fee_wei": "747213960",
  "base_fee_gwei": 0.74721396,
  "gas_used_ratio": 0.4993,
  "blob_base_fee_wei": "1",
  "blob_base_fee_gwei": 1e-9,
  "next_base_fee_gwei": 0.747189,
  "blob_gas_used_ratio": 0.25,
  "next_blob_base_fee_gwei": 1e-9
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/seneschal-ethereum-base-fee-live-query-2ebf62de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.seneschal.space](https://www.zero.xyz/host/api.seneschal.space/llms.txt)
