80trust / 100

Chain Block Number

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 2 h ago

chainpeek (Tanod) latest block number, timestamp and age in seconds of Ethereum, Base or Robinhood Chain. Use when an agent needs the latest block number of Ethereum, Base or Robinhood Chain, with its timestamp and age in seconds.

POST https://tanod.dev/v1/chain/block-number

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
277 ms typical, 739 ms slowest 5%
Last check
2 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/block-number' \
  -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%2Fblock-number
const res = await pay("https://tanod.dev/v1/chain/block-number", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"chain\":\"base\"}",
});
console.log(await res.json());

Example input

{
  "chain": "base"
}

Example output

{
  "age_seconds": 1,
  "block_number": 52396570,
  "block_time": "2026-10-09T21:48:07Z",
  "block_timestamp": 1791582487,
  "chain": "base",
  "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
2 h agoPassed402353 ms$0.001
6 h agoPassed402260 ms$0.001
10 h agoPassed402279 ms$0.001
14 h agoPassed402606 ms$0.001
18 h agoPassed402267 ms$0.001
21 h agoPassed402268 ms$0.001
25 h agoPassed402275 ms$0.001
28 h agoPassed402316 ms$0.001
32 h agoPassed402403 ms$0.001
36 h agoPassed402884 ms$0.001
39 h agoPassed402277 ms$0.001
43 h agoPassed402274 ms$0.001
47 h agoPassed402275 ms$0.001
2 days agoPassed402739 ms$0.001
2 days agoPassed402262 ms$0.001