Single-fact: what does Ethereum mainnet gas cost RIGHT NOW? Returns the latest block’s bas
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).
1000 (raw units)
price
4
calls / 30d
3
unique payers
2026-09-08
updated
Provider
api.seneschal.space · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x46Ba634261566CF242c853d1f49511f9268ba674",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"as_of_ms": 1765532000000,
"base_fee_gwei": 0.74721396,
"base_fee_wei": "747213960",
"blob_base_fee_gwei": 1e-9,
"blob_base_fee_wei": "1",
"blob_gas_used_ratio": 0.25,
"block": 23012001,
"gas_used_ratio": 0.4993,
"next_base_fee_gwei": 0.747189,
"next_blob_base_fee_gwei": 1e-9,
"next_block": 23012002
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"as_of_ms": {
"type": "integer"
},
"base_fee_gwei": {
"type": "number"
},
"base_fee_wei": {
"type": "string"
},
"blob_base_fee_gwei": {
"type": "number"
},
"blob_base_fee_wei": {
"type": "string"
},
"blob_gas_used_ratio": {
"type": "number"
},
"block": {
"type": "integer"
},
"gas_used_ratio": {
"type": "number"
},
"next_base_fee_gwei": {
"type": "number"
},
"next_blob_base_fee_gwei": {
"type": "number"
},
"next_block": {
"type": "integer"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.seneschal.space/v1/q/base-fee" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.seneschal.space/v1/q/base-fee");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.seneschal.space/v1/q/base-fee")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5089.json, and this resource appears in /discovery/resources and /discovery/search.