Check an x402 endpoint before you pay it
mint-check.vercel.app/api/x402-seller-check
Check an x402 endpoint before you pay it. Makes one unpaid request and decodes the 402 (v1 or v2): price in USD, network, asset, payTo (EOA, EIP-7702 or contract), timeout. Flags issues that make payments fail: EIP-712 name/version not matching the token on Base, description over the CDP 500-char limit, wrong resource URL, missing Bazaar metadata. Never signs or pays. Not a judgment of the seller'
GET
https://mint-check.vercel.app/api/x402-seller-checkUptime100% 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://mint-check.vercel.app/api/x402-seller-check?method=GET&url=https%3A%2F%2Fmint-check.vercel.app%2Fapi%2Fmint-check");
console.log(await res.json());Example input
{
"method": "GET",
"url": "https://mint-check.vercel.app/api/mint-check"
}