79trust / 100

Audit X402 Preflight

by Aura Agent Commerce in Weather & location

x402 APIPassing, checked 1 h ago

Aura deterministic x402 purchase preflight from supplied OpenAPI metadata

POST https://aura-revenue.helionixlabs.com/x402/audit/x402-preflight

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://aura-revenue.helionixlabs.com/x402/audit/x402-preflight" \
  -H "content-type: application/json" \
  -d '{"intendedTask":"research a topic","maxPriceUsd":1,"openapi":{"info":{"title":"Example"},"openapi":"3.1.0","paths":{},"servers":[{"url":"https://example.com"}]}}'
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%2Faura-revenue.helionixlabs.com%2Fx402%2Faudit%2Fx402-preflight
const res = await pay("https://aura-revenue.helionixlabs.com/x402/audit/x402-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"intendedTask":"research a topic","maxPriceUsd":1,"openapi":{"info":{"title":"Example"},"openapi":"3.1.0","paths":{},"servers":[{"url":"https://example.com"}]}}),
});
console.log(await res.json());

Example input

{
  "intendedTask": "research a topic",
  "maxPriceUsd": 1,
  "openapi": {
    "info": {
      "title": "Example"
    },
    "openapi": "3.1.0",
    "paths": {},
    "servers": [
      {
        "url": "https://example.com"
      }
    ]
  }
}

Example output

{
  "affordableRoutes": [],
  "passed": false,
  "recommendedCall": null,
  "verdict": "preflight_rejected",
  "warnings": []
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402542 ms$0.01
4 h agoPassed402688 ms$0.01
8 h agoPassed402607 ms$0.01
11 h agoPassed402625 ms$0.01
15 h agoPassed402713 ms$0.01
19 h agoPassed402519 ms$0.01
23 h agoPassed402647 ms$0.01
27 h agoPassed402649 ms$0.01
30 h agoPassed402486 ms$0.01
33 h agoPassed402639 ms$0.01
38 h agoPassed402529 ms$0.01