AGENT USAGE
# interactive mode -- prompts for URL input
bankr x402 call https://x402.bankr.bot/0x72e45a93491a6acfd02da6ceb71a903f3d3b6d08/lint -i
import { wrapFetchWithPayment } from "@x402/fetch";
const paidFetch = wrapFetchWithPayment(fetch, client);
const res = await paidFetch(
"https://x402.bankr.bot/0x72e45a93491a6acfd02da6ceb71a903f3d3b6d08/lint",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ url: "https://your-endpoint.com/api" }),
}
);
const report = await res.json();
// { ok: true, grade: "B", score: 88, findings: [...] }
# returns 402 without payment -- use with x402 client
curl -X POST https://x402.bankr.bot/0x72e45a93491a6acfd02da6ceb71a903f3d3b6d08/lint \
-H "Content-Type: application/json" \
-d '{"url": "https://api.ordiscan.com/v1/inscription/0"}'