81trust / 100

Inspect

by api.x-402.online in Markets & finance

x402 APIPassing, checked 4 h ago

Check that an x402 endpoint still returns a valid payment challenge, and read its price and recipient. Probe an x402 endpoint and report whether it still returns a valid payment challenge: HTTP status, challenge source (v2 header or legacy body), scheme, network, asset, payTo, amount in atomic units and in USDC, and a…

GET https://api.x-402.online/v1/x402/inspect

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
145 ms typical, 145 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.x-402.online/v1/x402/inspect?method=POST&url=https%3A%2F%2Fapi.x-402.online%2Fv1%2Fextract"
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%2Fapi.x-402.online%2Fv1%2Fx402%2Finspect
const res = await pay("https://api.x-402.online/v1/x402/inspect?method=POST&url=https%3A%2F%2Fapi.x-402.online%2Fv1%2Fextract");
console.log(await res.json());

Example input

{
  "method": "POST",
  "url": "https://api.x-402.online/v1/extract"
}

Example output

{
  "amount_atomic": "5000",
  "amount_usdc": 0.005,
  "http_status": 402,
  "network": "eip155:8453",
  "pay_to": "0x…",
  "problems": [],
  "x402_compliant": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402145 ms$0.005