Loading...
/api/trust?url={endpoint}
/api/preflight
/api/health
const trust = await fetch(
"https://canary.0x402.sh/api/trust?url=" + encodeURIComponent(targetUrl)
);
const { trustScore, recommendation } = await trust.json();
if (recommendation === "safe-to-pay") {
// proceed with x402 payment
}