AI agent x402 payment firewall
base-agent-preflight.bytoken2023.workers.dev/v1/x402/payment-guard/evaluate
AI agent x402 payment firewall: enforce budgets and mandates, simulate transactions, score merchant and domain risk, prevent replay, require human approval, and audit delivery before autonomous spending.
GET
https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/payment-guard/evaluateUptime100% 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://base-agent-preflight.bytoken2023.workers.dev/v1/x402/payment-guard/evaluate?url=https%3A%2F%2Fx402.twit.sh%2Ftweets%2Fby%2Fid%3Fid%3D1110302988&request_id=demo-request-1&session_id=demo-session&max_single_usdc=0.10&daily_budget_usdc=5.00&session_budget_usdc=1.00");
console.log(await res.json());Example input
{
"url": "https://x402.twit.sh/tweets/by/id?id=1110302988",
"request_id": "demo-request-1",
"session_id": "demo-session",
"max_single_usdc": "0.10",
"daily_budget_usdc": "5.00",
"session_budget_usdc": "1.00"
}More from Agent Payment GuardProvider status
- agent-payment-guard.agent-data-apis.workers.dev/v1/checkPre-payment counterparty check for AI agents: is this wallet sanctioned (OFAC/UK/EU crypto addresses), is it a known x402 seller (Bazaar volume, PayAPI settlement-verified), live Base facts, optional counterparty-name sanctions screening, and a signed receipt. Verdict: block / review / clear.0.005
- agent-payment-guard.agent-data-apis.workers.dev/v1/tokenPre-trade token/contract risk check for trading agents: honeypot and buy/sell tax simulation on the deepest pool (Uniswap V2/V3 + Aerodrome on Base; Uniswap V2/V3 on Ethereum), owner powers (mint, pause, blacklist, fee changes), upgradeable proxy, liquidity, renounced ownership, sanctioned owner. Verdict avoid/caution/ok plus a signed receipt.0.01
