79trust / 100

Crypto Gas

by Toolsmith in Onchain & crypto

x402 APIPassing, checked 11 min ago

Current gas price and latest block for Base or Ethereum mainnet, straight from public RPC. Fresh within 15 seconds. JSON response. $0.002 USDC per call, pay via x402, no API key.

GET https://toolcall.click/t/crypto/gas

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
455 ms typical, 561 ms slowest 5%
Last check
11 min ago
Next check
in 19 min

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X GET 'https://toolcall.click/t/crypto/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%2Ftoolcall.click%2Ft%2Fcrypto%2Fgas
const res = await pay("https://toolcall.click/t/crypto/gas?chain=base");
console.log(await res.json());

Example input

{
  "chain": "base"
}

Example output

{
  "blockNumber": 32456789,
  "chain": "base",
  "gasPriceGwei": 0.00515,
  "gasPriceWei": "5150000"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
11 min agoPassed402616 ms$0.002
4 h agoPassed40246 ms$0.002
8 h agoPassed402108 ms$0.002
12 h agoPassed402331 ms$0.002
16 h agoPassed402442 ms$0.002
20 h agoPassed402509 ms$0.002
23 h agoPassed402448 ms$0.002
27 h agoPassed402561 ms$0.002
30 h agoPassed402241 ms$0.002
34 h agoPassed402432 ms$0.002
37 h agoPassed402468 ms$0.002
41 h agoPassed402455 ms$0.002
45 h agoPassed402472 ms$0.002
2 days agoPassed402490 ms$0.002
2 days agoPassed402337 ms$0.002