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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Amount "0.003" is not in atomic token units | 402 | 79 ms | $0.003 |
| 9 h ago | Amount "0.003" is not in atomic token units | 402 | 88 ms | $0.003 |
| 13 h ago | Amount "0.003" is not in atomic token units | 402 | 87 ms | $0.003 |
| 18 h ago | Amount "0.003" is not in atomic token units | 402 | 118 ms | $0.003 |
| 22 h ago | Amount "0.003" is not in atomic token units | 402 | 80 ms | $0.003 |
| 26 h ago | Amount "0.003" is not in atomic token units | 402 | 79 ms | $0.003 |
| 30 h ago | Amount "0.003" is not in atomic token units | 402 | 77 ms | $0.003 |
| 34 h ago | Amount "0.003" is not in atomic token units | 402 | 77 ms | $0.003 |
| 38 h ago | Amount "0.003" is not in atomic token units | 402 | 88 ms | $0.003 |
| 41 h ago | Amount "0.003" is not in atomic token units | 402 | 265 ms | $0.003 |
| 46 h ago | Amount "0.003" is not in atomic token units | 402 | 83 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 96 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 77 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 76 ms | $0.003 |
| 3 days ago | Amount "0.003" is not in atomic token units | 402 | 89 ms | $0.003 |