Skip to content
Fourohtwo

newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/api/x402/preflight

Purpose: check another x402 endpoint's price, asset and payTo before you pay it. x402 pre-payment check: fetch any x402 endpoint, decode its 402 (v1 or v2), verify the asset is canonical USDC, price in USD vs your budget, payTo, testnet/mainnet, discovery metadata. Call before paying an unknown endpoint. Failed calls (HTTP 4xx/5xx) are not charged.

BaseAnswering
GEThttps://newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/api/x402/preflight

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://newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/api/x402/preflight?maxUsd=0.05&url=https%3A%2F%2Fnewbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run%2Fapi%2Fread");
console.log(await res.json());

Example input

{
  "maxUsd": "0.05",
  "url": "https://newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/api/read"
}