81trust / 100
Gas
by EVM Gas Price Oracle in Onchain & crypto
x402 APIPassing, checked 2 h ago
Current gas prices for Base or Ethereum mainnet: legacy gas price, EIP-1559 base fee and suggested priority fee (all gwei), plus the latest block number. Query: chain (base | ethereum, default base). Real-time from public RPC. Use to time on-chain transactions, estimate costs, and monitor fee spikes.
GET https://x402.shizu.me/gas
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 5 ms typical, 5 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.shizu.me/gas?chain=base"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.shizu.me%2Fgas
const res = await pay("https://x402.shizu.me/gas?chain=base");
console.log(await res.json());Example input
{
"chain": "base"
}Example output
{
"base_fee_gwei": 0.008,
"block": 27100000,
"chain": "base",
"gas_price_gwei": 0.012,
"priority_fee_gwei": 0.001
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 12 ms | $0.003 |
| 7 h ago | Passed | 402 | 5 ms | $0.003 |