Skip to content
Fourohtwo

Before you pay an x402 seller

warrant-agent-check.vercel.app/v1/x402/preflight

Before you pay an x402 seller: is the endpoint up, does it ask for real Circle USDC, how much, and what is the address that receives the money.

BaseAnswering
GEThttps://warrant-agent-check.vercel.app/v1/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://warrant-agent-check.vercel.app/v1/x402/preflight?url=https%3A%2F%2Fwarrant-agent-check.vercel.app%2Fv1%2Fbase%2Faddress%3Faddress%3D0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
console.log(await res.json());

Example input

{
  "url": "https://warrant-agent-check.vercel.app/v1/base/address?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}