16trust / 100

Block By Date

by Vextorium in Onchain & crypto

x402 APIFailing, checked 4 h ago

Block number closest to a date and time on EVM chains (ethereum, base, arbitrum, optimism, polygon, bsc, avax...), with the block's own timestamp. For historical state queries and event filters.

POST https://api.vextorium.com/v1/block-by-date

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
4 h ago: Amount "0.003" is not in atomic token units
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://api.vextorium.com/v1/block-by-date' \
  -H 'content-type: application/json' \
  --data-raw '{"chain":"base","date":"2025-01-01"}'
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%2Fapi.vextorium.com%2Fv1%2Fblock-by-date
const res = await pay("https://api.vextorium.com/v1/block-by-date", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"chain\":\"base\",\"date\":\"2025-01-01\"}",
});
console.log(await res.json());

Example input

{
  "chain": "base",
  "date": "2025-01-01"
}

Example output

{
  "block": 24450127,
  "block_time": "2025-01-01T00:00:01+00:00",
  "chain": "base",
  "requested_date": "2025-01-01T00:00:00+00:00",
  "seconds_difference": 1,
  "source": "DefiLlama"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoAmount "0.003" is not in atomic token units40279 ms$0.003
9 h agoAmount "0.003" is not in atomic token units40288 ms$0.003
13 h agoAmount "0.003" is not in atomic token units40287 ms$0.003
18 h agoAmount "0.003" is not in atomic token units402118 ms$0.003
22 h agoAmount "0.003" is not in atomic token units40280 ms$0.003
26 h agoAmount "0.003" is not in atomic token units40279 ms$0.003
30 h agoAmount "0.003" is not in atomic token units40277 ms$0.003
34 h agoAmount "0.003" is not in atomic token units40277 ms$0.003
38 h agoAmount "0.003" is not in atomic token units40288 ms$0.003
41 h agoAmount "0.003" is not in atomic token units402265 ms$0.003
46 h agoAmount "0.003" is not in atomic token units40283 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40296 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40277 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40276 ms$0.003
3 days agoAmount "0.003" is not in atomic token units40289 ms$0.003