78trust / 100

Preflight

by effectguard-x402-experiment.onrender.com in Weather & location

x402 APIPassing, checked 4 h ago

Coordinate agents sharing one account: reuse matching JSON reads within 30 seconds, or stop duplicate operations using a stable business event ID. Enroll once at /v1/enroll, then authenticate paid calls with your Bearer key. After EXECUTE use /v1/start and /v1/commit around your own tool. Same-request payment recovery is free. Integration and cost measurement: /agent. External execution is not guaranteed exactly once.

POST https://effectguard-x402-experiment.onrender.com/v1/preflight

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
190 ms typical, 231 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://effectguard-x402-experiment.onrender.com/v1/preflight" \
  -H "content-type: application/json" \
  -d '{"account_id":"main","agent_id":"example-agent","arguments":{"namespace":"my-app/v1","operation":"report","parameters":{"id":"example"}},"request_id":"example-request-1","session_id":"example-session","tool":"json.read"}'
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%2Feffectguard-x402-experiment.onrender.com%2Fv1%2Fpreflight
const res = await pay("https://effectguard-x402-experiment.onrender.com/v1/preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"account_id":"main","agent_id":"example-agent","arguments":{"namespace":"my-app/v1","operation":"report","parameters":{"id":"example"}},"request_id":"example-request-1","session_id":"example-session","tool":"json.read"}),
});
console.log(await res.json());

Example input

{
  "account_id": "main",
  "agent_id": "example-agent",
  "arguments": {
    "namespace": "my-app/v1",
    "operation": "report",
    "parameters": {
      "id": "example"
    }
  },
  "request_id": "example-request-1",
  "session_id": "example-session",
  "tool": "json.read"
}

Example output

{
  "decision": "WAIT",
  "reason": "matching_request_in_progress",
  "retry_after_ms": 1000
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402179 ms$0.01
7 h agoPassed402114 ms$0.01
10 h agoPassed402213 ms$0.01
14 h agoPassed402231 ms$0.01
18 h agoPassed402190 ms$0.01
21 h agoPassed402194 ms$0.01
25 h agoPassed40297 ms$0.01
29 h agoPassed40296 ms$0.01
32 h agoPassed402209 ms$0.01
36 h agoPassed402204 ms$0.01
40 h agoPassed402234 ms$0.01
43 h agoPassed402186 ms$0.01
2 days agoPassed402184 ms$0.01