Live gas price on Ethereum, Base, Arbitrum, Optimism or Polygon, in gwei plus the cost of
Live gas price on Ethereum, Base, Arbitrum, Optimism or Polygon, in gwei plus the cost of a plain transfer. Compare several chains in one call.
5000 (raw units)
price
12
calls / 30d
5
unique payers
2026-09-12
updated
Provider
onchain-toolkit.bowling-anthony.workers.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x1831f336585a6C67B6A954d28f3E07F44C4EEBbd",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"chain": "One or more of ethereum, base, arbitrum, optimism, polygon (comma-separated)."
},
"type": "http"
},
"output": {
"example": {
"chains": [
{
"chain": "base",
"chainId": 8453,
"gasPriceGwei": 0.006,
"gasPriceWei": "6000000",
"name": "Base"
}
],
"checkedAt": "2026-08-24T11:09:17.183Z",
"note": "Gas moves every block; treat this as ..."
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://onchain-toolkit.bowling-anthony.workers.dev/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://onchain-toolkit.bowling-anthony.workers.dev/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://onchain-toolkit.bowling-anthony.workers.dev/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/8160.json, and this resource appears in /discovery/resources and /discovery/search.