81trust / 100

Preflight

by agentdata-api.sander-van-aard.workers.dev in Weather & location

x402 APIPassing, checked 4 h ago

Preflight before paying an x402 service: is it working right now, and did it work the past 30 days? One live probe of the exact resource URL you intend to pay (status, latency, x402 validity, the payTo/price the service itself publishes in its 402, manifest presence) plus our own monitoring history of the host (30-day uptime, last check, recent changes such as payTo or price drift). Optionally verifies that the pay_to you intend to pay matches the live 402. Facts only — no scores.

POST https://agentdata-api.sander-van-aard.workers.dev/x402/preflight

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentdata-api.sander-van-aard.workers.dev/x402/preflight" \
  -H "content-type: application/json" \
  -d '{"pay_to":"0x0000000000000000000000000000000000000001","resource":"https://api.example-service.com/data"}'
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%2Fagentdata-api.sander-van-aard.workers.dev%2Fx402%2Fpreflight
const res = await pay("https://agentdata-api.sander-van-aard.workers.dev/x402/preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"pay_to":"0x0000000000000000000000000000000000000001","resource":"https://api.example-service.com/data"}),
});
console.log(await res.json());

Example input

{
  "pay_to": "0x0000000000000000000000000000000000000001",
  "resource": "https://api.example-service.com/data"
}

Example output

{
  "checked_at": "2026-07-14T08:00:00.000Z",
  "history": {
    "hosts": [
      {
        "host": "api.example-service.com",
        "uptime_30d_pct": 99.1
      }
    ],
    "monitored": true
  },
  "live": {
    "latency_ms": 320,
    "manifest_present": true,
    "observed_pay_to": "0x0000000000000000000000000000000000000001",
    "pay_to_matches_live": true,
    "status": "ok_402"
  },
  "status_page": "https://x402-monitor.sander-van-aard.workers.dev/status/api.example-service.com"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed40270 ms$0.01