Etherscan
Current gas price tiers and base fee, from Etherscan's V2 multichain API.
1 endpoint684 calls1/1 passing
Gas Oracle
GET
/v1/finance:etherscan/gas-oraclepassing · 0.9s30s cache
Parameters
| Name | Type | In | Description |
|---|---|---|---|
| chainId | number | query | Chain selector. 1 is Ethereum mainnet, 137 Polygon; both serve this oracle without credentials. |
Example response
{"project":"finance:etherscan", "data": {"unit":"gwei","chainId":1,"dataset":"gas-oracle","provider":"etherscan","lastBlock":25800500,"fastGasPrice":0.227841836, "gasUsedRatio": [ 0.862360183333333, 0.946595916666667, 0.3724444, 0.445706816666667, 0.753381933333333 ],"safeGasPrice":0.16983154,"suggestBaseFee":0.16983154,"proposeGasPrice":0.17083154 },"timestamp":"2026-08-21T02:24:45Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Try it
Live request with your key
const data = await client.run( "finance:etherscan", "gas-oracle", { chainId: 1 });
Etherscan
Current gas price tiers and base fee, from Etherscan's V2 multichain API.
1 endpoint684 calls1/1 passing
GET
/v1/…etherscan/gas-oraclepassing · 0.9s30s cache
Try it
Parameters
chainId
number · query · optional
Chain selector. 1 is Ethereum mainnet, 137 Polygon; both serve this oracle without credentials.
Example response
{"project":"finance:etherscan", "data": {"unit":"gwei","chainId":1,"dataset":"gas-oracle","provider":"etherscan","lastBlock":25800500,"fastGasPrice":0.227841836, "gasUsedRatio": [ 0.862360183333333, 0.946595916666667, 0.3724444, 0.445706816666667, 0.753381933333333 ],"safeGasPrice":0.16983154,"suggestBaseFee":0.16983154,"proposeGasPrice":0.17083154 },"timestamp":"2026-08-21T02:24:45Z"}
Errors
- 401Missing or invalid x-api-key
- 404Not found or private
- 429Rate limit or monthly quota reached
Code
const data = await client.run( "finance:etherscan", "gas-oracle", { chainId: 1 });