78trust / 100

Gas

by Current gas in Onchain & crypto

x402 APIPassing, checked 11 min ago

Live gas conditions for an EVM chain: current gas price, the latest block's base fee (EIP-1559) and the suggested max priority fee — all in both wei and gwei. Ground truth an agent can't compute. Reads live on-chain data with automatic endpoint fallback.

POST https://chain.openverbs.com/v1/gas

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
513 ms typical, 566 ms slowest 5%
Last check
11 min ago
Next check
in 20 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://chain.openverbs.com/v1/gas" \
  -H "content-type: application/json" \
  -d '{"chain":"ethereum"}'
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%2Fchain.openverbs.com%2Fv1%2Fgas
const res = await pay("https://chain.openverbs.com/v1/gas", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"ethereum"}),
});
console.log(await res.json());

Example input

{
  "chain": "ethereum"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
11 min agoPassed402513 ms$0.002
3 h agoPassed402633 ms$0.002
7 h agoPassed402566 ms$0.002
12 h agoPassed402166 ms$0.002