80trust / 100
Eth Gas
by AllTheBot Ethereum gas price in Onchain & crypto
x402 APIPassing, checked 13 min ago
Gas price on Ethereum right now: gas price, base fee and priority fee in gwei, plus the cost of a simple ETH transfer. Decide whether to transact now or wait. No input needed.
GET https://api.zkrobotics.fr/x402/eth/gas
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 63 ms typical, 63 ms slowest 5%
- Last check
- 13 min ago
- Next check
- in 17 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.zkrobotics.fr/x402/eth/gas"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%2Fapi.zkrobotics.fr%2Fx402%2Feth%2Fgas
const res = await pay("https://api.zkrobotics.fr/x402/eth/gas");
console.log(await res.json());Example output
{
"base_fee_gwei": "0.228394507",
"block": 26147688,
"eth_transfer_cost_eth": "0.000004796284647",
"gas_price_gwei": "0.228394507",
"network": "ethereum",
"priority_fee_gwei": "0"
}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 |
|---|---|---|---|---|
| 13 min ago | Passed | 402 | 63 ms | $0.002 |
| 5 h ago | Passed | 402 | 64 ms | $0.002 |