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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 11 min ago | Passed | 402 | 616 ms | $0.002 |
| 4 h ago | Passed | 402 | 46 ms | $0.002 |
| 8 h ago | Passed | 402 | 108 ms | $0.002 |
| 12 h ago | Passed | 402 | 331 ms | $0.002 |
| 16 h ago | Passed | 402 | 442 ms | $0.002 |
| 20 h ago | Passed | 402 | 509 ms | $0.002 |
| 23 h ago | Passed | 402 | 448 ms | $0.002 |
| 27 h ago | Passed | 402 | 561 ms | $0.002 |
| 30 h ago | Passed | 402 | 241 ms | $0.002 |
| 34 h ago | Passed | 402 | 432 ms | $0.002 |
| 37 h ago | Passed | 402 | 468 ms | $0.002 |
| 41 h ago | Passed | 402 | 455 ms | $0.002 |
| 45 h ago | Passed | 402 | 472 ms | $0.002 |
| 2 days ago | Passed | 402 | 490 ms | $0.002 |
| 2 days ago | Passed | 402 | 337 ms | $0.002 |