Base Gas Price
Paid Base gas price and chain head (cycle 226 alias path, x402 $0.01) - GET ?sample=1|2|3. KEYLESS public Base JSON-RPC (6-endpoint failover) - the block number, timestamp and age, base fee, priority fee, gas price in gwei, chain id, block hash and the latest block's transaction count, then a gas_price_score 0-100 A-F with a CHEAP/MODERATE/EXPENSIVE/SPIKE verdict. ALIAS PATH of /chain/base-gas-pri
- Price per call
- $0.01
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 0
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://otzik-38-190-144-122.run.pinggy-free.link/base-gas-price", { method: "GET" });
console.log(await res.json());https://otzik-38-190-144-122.run.pinggy-free.link/base-gas-price