Current gas price tiers and base fee, from Etherscan's V2 multichain API.
gas-oraclenot measured/v1/finance:etherscan/gas-oracle30s cache1 paramchecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("finance:etherscan", "gas-oracle", {
"chainId": 1
});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/finance:etherscan/gas-oracle?chainId=1" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/finance:etherscan/gas-oracleCurrent gas price tiers and base fee, from Etherscan's V2 multichain API.chainIdnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:etherscan/gas-oracle?chainId=1" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"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
}