80trust / 100

Chain Info

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 3 h ago

chainpeek (Tanod) chain info: chain id, latest block, head age and gas price of Ethereum or Base. Use when an agent needs a quick health check of Ethereum or Base: chain id, head block, head age and gas price.

POST https://tanod.dev/v1/chain/info

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
283 ms typical, 810 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/chain/info' \
  -H 'content-type: application/json' \
  --data-raw '{"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%2Ftanod.dev%2Fv1%2Fchain%2Finfo
const res = await pay("https://tanod.dev/v1/chain/info", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"chain\":\"base\"}",
});
console.log(await res.json());

Example input

{
  "chain": "base"
}

Example output

{
  "base_fee_gwei": "0.005",
  "block_number": 52373611,
  "block_timestamp": 1791536569,
  "chain": "base",
  "chain_id": 8453,
  "gas_limit": "400000000",
  "gas_price_gwei": "0.006",
  "gas_price_wei": "6000000",
  "gas_used": "40814221",
  "head_age_s": 3,
  "native_symbol": "ETH",
  "note": "RPC reads are cached up to 30 s"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402810 ms$0.001
7 h agoPassed402718 ms$0.001
11 h agoPassed402267 ms$0.001
14 h agoPassed402808 ms$0.001
18 h agoPassed402269 ms$0.001
22 h agoPassed402278 ms$0.001
25 h agoPassed4021.5 s$0.001
29 h agoPassed402788 ms$0.001
33 h agoPassed402354 ms$0.001
36 h agoPassed402268 ms$0.001
40 h agoPassed402438 ms$0.001
43 h agoPassed402304 ms$0.001
2 days agoPassed402264 ms$0.001
2 days agoPassed402283 ms$0.001
2 days agoPassed402259 ms$0.001