x402 seller preflight
nightshift-x402.nightshift-labs.workers.dev/v1/x402/preflight
x402 seller preflight: check a paid endpoint BEFORE paying. Probes it unpaid, parses the 402 (v2 header or v1 body) and checks each option: scheme, network, asset is real USDC on Base, EIP-712 name/version match on-chain, payTo not a burn address, amount, timeout, discovery metadata. Plus on-chain seller reputation: USDC payments to payTo over 1-7 days (distinct payers, total, last payment). Retur
GET
https://nightshift-x402.nightshift-labs.workers.dev/v1/x402/preflightUptime100% of 4 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://nightshift-x402.nightshift-labs.workers.dev/v1/x402/preflight?method=GET&url=https%3A%2F%2Fapi.agentstools.dev%2Fweather");
console.log(await res.json());Example input
{
"method": "GET",
"url": "https://api.agentstools.dev/weather"
}