82trust / 100

X402 Endpoint Doctor

by x402 endpoint checker & doctor in Other

x402 APIPassing, checked 33 min ago

x402 validator: will Coinbase Bazaar list your x402 endpoint, and can a client pay it? Why will Coinbase not list your x402 endpoint, and can a standard client pay it? Pass ?url= (and &method=POST for a POST route). We read its 402 as a client does, check what Coinbase's facilitator and Bazaar enforce (accepts[0] network, the $0.001 minimum, descriptions over 500 characters, a bazaar schema that must describe info, query numbers typed as strings, routeTemplate, exposed headers), and ask…

GET https://apexfaucet.xyz/api/x402/x402-endpoint-doctor

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
207 ms typical, 207 ms slowest 5%
Last check
33 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://apexfaucet.xyz/api/x402/x402-endpoint-doctor?method=GET&url=https%3A%2F%2Fapi.onesource.io%2Fapi%2Fchain%2Ferc20-balance"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapexfaucet.xyz%2Fapi%2Fx402%2Fx402-endpoint-doctor
const res = await pay("https://apexfaucet.xyz/api/x402/x402-endpoint-doctor?method=GET&url=https%3A%2F%2Fapi.onesource.io%2Fapi%2Fchain%2Ferc20-balance");
console.log(await res.json());

Example input

{
  "method": "GET",
  "url": "https://api.onesource.io/api/chain/erc20-balance"
}

Example output

{
  "data": {
    "coinbaseValidator": {
      "answered": true,
      "failedChecks": [],
      "indexed": {},
      "outcome": "accepted",
      "rejectionReason": null,
      "valid": true
    },
    "how": "the 402 is fetched once without payment …",
    "httpStatus": 402,
    "method": "GET",
    "notes": [],
    "offers": [
      {}
    ],
    "ok": true,
    "problems": [
      {}
    ],
    "url": "https://api.onesource.io/api/chain/erc20…",
    "verdict": "LISTABLE: Coinbase's validator accepts i…",
    "x402": 2
  },
  "ok": true,
  "paid": 0.005
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
33 min agoPassed402173 ms$0.005
4 h agoPassed402211 ms$0.005
9 h agoPassed402207 ms$0.005