78trust / 100

X402 Audit

by Quartermaster x402 Audit in Security & trust

x402 APIPassing, checked 2 h ago

Full x402 endpoint audit: verifies the 402 challenge, payment fields, Bazaar discovery metadata, and the origin's discovery surfaces (llms.txt, openapi.json, .well-known/x402, discovery/resources), returning a 0-100 score, pass/warn/fail checks with evidence, and recommended fixes.

GET https://quartermaster.surewhynot.app/v1/x402-audit

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://quartermaster.surewhynot.app/v1/x402-audit?url=https%3A%2F%2Fapi.example.com%2Fpaid-endpoint"
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%2Fquartermaster.surewhynot.app%2Fv1%2Fx402-audit
const res = await pay("https://quartermaster.surewhynot.app/v1/x402-audit?url=https%3A%2F%2Fapi.example.com%2Fpaid-endpoint");
console.log(await res.json());

Example input

{
  "url": "https://api.example.com/paid-endpoint"
}

Example output

{
  "bazaar": {
    "has_metadata": false
  },
  "checks": [
    {
      "id": "returns_402",
      "label": "Endpoint returns HTTP 402 for unpaid requests",
      "status": "pass"
    }
  ],
  "discovery": {
    "discovery_resources": "missing",
    "llms_txt": "missing",
    "openapi_json": "present",
    "well_known_x402": "missing"
  },
  "payment": {
    "asset_name": "USDC (Base mainnet)",
    "is_x402": true,
    "network": "eip155:8453",
    "x402_version": 2
  },
  "recommended_fixes": [
    "Declare Bazaar discovery metadata on the route - without it, settlements will NOT list you in the Coinbase Bazaar."
  ],
  "score": 72,
  "status": "warn",
  "target_url": "https://api.example.com/paid-endpoint"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402523 ms$0.01
5 h agoPassed402680 ms$0.01
9 h agoPassed402716 ms$0.01
14 h agoPassed40244 ms$0.01