Check an x402 endpoint before paying it
xhagents.xyz/api/x402-trust
Check an x402 endpoint before paying it. Give it any x402 URL: it makes the unpaid request, decodes the 402 challenge, reads the origin's .well-known/x402 and openapi.json, inspects the payTo address on-chain (USDC inflows, distinct senders, EOA vs contract vs smart-wallet delegation), and returns a 0-100 trust score with buy/watch/avoid plus the evidence and the penalties behind every point ...
POST
https://xhagents.xyz/api/x402-trustUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://xhagents.xyz/api/x402-trust", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"method":"POST","url":"https://xhagents.xyz/api/kb/ask"}),
});
console.log(await res.json());Example input
{
"method": "POST",
"url": "https://xhagents.xyz/api/kb/ask"
}