Skip to content
Fourohtwo

Check an x402 endpoint before paying it

api.x402toolshop.com/v1/x402-check

Check an x402 endpoint before paying it. Makes one unpaid call, reads the 402 payment terms (v1 body or v2 header) and validates every option: the token is the official USDC contract for its network (not a look-alike), the price parses, the terms point back at the URL you called.

BasePolygonArbitrumAvalancheSolanaAnswering
GEThttps://api.x402toolshop.com/v1/x402-check

Uptime100% 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://api.x402toolshop.com/v1/x402-check?url=https%3A%2F%2Fapi.x402toolshop.com%2Fv1%2Fweather%3Flocation%3DGoshen%252C%2BIN");
console.log(await res.json());

Example input

{
  "url": "https://api.x402toolshop.com/v1/weather?location=Goshen%2C+IN"
}

More from x402 Tool ShopProvider status