Read current gas price and base fee, live from Base mainnet, for a fraction of a cent
Read current gas price and base fee, live from Base mainnet, for a fraction of a cent. No API key, no account — a wallet is the only requirement, and you are charged only if the read succeeds. Plain unsigned data; the attested version of chain reads is /v1/oracle/onchain. Answers are read at the moment of the call and stamped with the block they came from where applicable.
2000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-07
updated
Provider
soren.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xaDc3A47EFbD82Ed724a0E9A3D08D5A1A8e6586fd",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 120
},
{
"scheme": "exact",
"network": "base",
"payTo": "0xaDc3A47EFbD82Ed724a0E9A3D08D5A1A8e6586fd",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"type": "http"
},
"output": {
"example": {
"as_of_block": "<int>",
"base_fee_wei": "<int>",
"gas_price_wei": "<int>"
},
"type": "json"
}
},
"routeTemplate": "/v1/chain/gas",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
}
}
}
}Use it
curl
curl "https://soren.com/v1/chain/gas" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://soren.com/v1/chain/gas");
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://soren.com/v1/chain/gas")
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/9089.json, and this resource appears in /discovery/resources and /discovery/search.