POST /check/counterparty -- Check an x402 quote before paying
agent-exec.448c.org/check/counterparty
POST /check/counterparty -- Check an x402 quote before paying: the 402 challenge against what you expected: wrong payTo, wrong asset, wrong host, price above your ceiling. Verdict, score and reasons back.
POST
https://agent-exec.448c.org/check/counterpartyUptime100% of 2 checks 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://agent-exec.448c.org/check/counterparty", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"claim":{"type":"object","required":false,"description":"OPTIONAL. What you believed before you asked: requestedUrl (required inside a claim you do send), expectedPayTo, maxAmountAtomic (atomic units of the quoted asset), payToReputation (a POST /check/address result to fold in). Omit it and the quote is graded alone, with every check that needed a claim named in the reasons."},"quote":{"type":"o),
});
console.log(await res.json());Example input
{"claim":{"type":"object","required":false,"description":"OPTIONAL. What you believed before you asked: requestedUrl (required inside a claim you do send), expectedPayTo, maxAmountAtomic (atomic units of the quoted asset), payToReputation (a POST /check/address result to fold in). Omit it and the quote is graded alone, with every check that needed a claim named in the reasons."},"quote":{"type":"o