78trust / 100

Preflight

by agent-tools-7936.onrender.com in Weather & location

x402 APIPassing, checked 3 h ago

Check an x402 endpoint before paying it: alive? correctly gated? price, network, latency. ~11% of listed endpoints we sampled were dead.

GET https://agent-tools-7936.onrender.com/preflight

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent-tools-7936.onrender.com/preflight?url=https%3A%2F%2Fedgar.apitoll.cloud%2Fv1%2Fedgar%2Ffilings"
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%2Fagent-tools-7936.onrender.com%2Fpreflight
const res = await pay("https://agent-tools-7936.onrender.com/preflight?url=https%3A%2F%2Fedgar.apitoll.cloud%2Fv1%2Fedgar%2Ffilings");
console.log(await res.json());

Example input

{
  "url": "https://edgar.apitoll.cloud/v1/edgar/filings"
}

Example output

{
  "http_status": 402,
  "latency_s": 0.95,
  "payment_required": {
    "options": [
      {
        "asset_symbol": "USDC",
        "network": "eip155:8453",
        "price_usd": "0.003"
      }
    ],
    "valid": true
  },
  "verdict": "PAYABLE"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402584 ms$0.001
7 h agoPassed402631 ms$0.001
11 h agoPassed402191 ms$0.001
14 h agoPassed402661 ms$0.001
18 h agoPassed402245 ms$0.001
21 h agoPassed402256 ms$0.001
25 h agoPassed402259 ms$0.001
29 h agoPassed402628 ms$0.001
32 h agoPassed402618 ms$0.001
36 h agoPassed402596 ms$0.001
40 h agoPassed402187 ms$0.001
43 h agoPassed402212 ms$0.001
2 days agoPassed402190 ms$0.001