Skip to content
Fourohtwo

base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent/spend-route-plan

Plan which Agent Payment Guard x402 resources an autonomous agent should buy for a task, budget, and risk tolerance.

BaseAnswering
GEThttps://base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent/spend-route-plan

Uptime100% of 2 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://base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent/spend-route-plan?task=screen+a+Base+token+before+buying&budget_usdc=0.02&risk_tolerance=medium");
console.log(await res.json());

Example input

{
  "task": "screen a Base token before buying",
  "budget_usdc": "0.02",
  "risk_tolerance": "medium"
}

More from NoHands AiProvider status