Skip to content
Fourohtwo

x402 probe

intel.rallylive.ca/dev/x402-probe

x402 probe: requests a URL without paying and decodes its 402 payment terms: x402 version, accepted schemes and networks (CAIP-2), price in USDC (atomic and human), payTo address, asset contract, max timeout, resource description, and whether the terms came from the PAYMENT-REQUIRED header or the JSON body. Tells an agent exactly what a paid API costs before it commits. $0.01 per probe.

BaseAnswering
POSThttps://intel.rallylive.ca/dev/x402-probe

Uptime100% 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://intel.rallylive.ca/dev/x402-probe", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://intel.rallylive.ca/domain-intel"}),
});
console.log(await res.json());

Example input

{
  "url": "https://intel.rallylive.ca/domain-intel"
}