Get live EVM gas pricing with EIP-1559 breakdown and USD cost estimates
Get live EVM gas pricing with EIP-1559 breakdown and USD cost estimates
10000 (raw units)
price
5
calls / 30d
5
unique payers
2026-09-17
updated
Provider
api2ls.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x692DcE6b2876854FA9d348BFBfd9C1c4DE6C07DD",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "AifT6piHJ957oqgeRVLAiAmvm3dJ3rLnD2EVck6Msf7k",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"chain": "base"
},
"type": "http"
},
"output": {
"example": {
"asOf": "2026-06-17T09:30:00.000Z",
"baseFeeGwei": 1.2,
"chain": "base",
"costEstimates": {
"transfer": {
"gasUnits": 21000,
"nativeAmount": "0.0000315",
"usd": 0.1103
}
},
"gasPriceGwei": 1.5,
"maxFeeGwei": 2.7,
"nativeToken": "ETH",
"nativeUsd": 3500,
"priorityFeeGwei": 0.3,
"success": true
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"chain": {
"description": "EVM network: base (default), ethereum, optimism, arbitrum, or polygon",
"type": "string"
},
"chains": {
"description": "Comma-separated list of chains (max 5) to compare in one call",
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"asOf": {
"type": "string"
},
"baseFeeGwei": {
"type": "number"
},
"chain": {
"type": "string"
},
"costEstimates": {
"type": "object"
},
"gasPriceGwei": {
"type": "number"
},
"maxFeeGwei": {
"type": "number"
},
"nativeToken": {
"type": "string"
},
"nativeUsd": {
"type": "number"
},
"priorityFeeGwei": {
"type": "number"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"chain",
"gasPriceGwei"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api2ls.com/api/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://api2ls.com/api/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://api2ls.com/api/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/6011.json, and this resource appears in /discovery/resources and /discovery/search.