Skip to content
Fourohtwo

Agent Payment Firewall

x402.asterpay.io/v2/x402/firewall/check

Agent Payment Firewall: call before signing any x402/MPP payment. Send payee, amount, your price limit and the 402 body; get allow, warn or block with reasons (sanctioned or unproven payee, honeypot asset, price over limit, unsafe URL, prompt injection). Deterministic, no LLM. Free for 10,000+ ASTERPAY holders (BSC).

BasePolygonArbitrumOptimismEthereumChain 1187947933Answering
POSThttps://x402.asterpay.io/v2/x402/firewall/check

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://x402.asterpay.io/v2/x402/firewall/check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount_usd":0.02,"context":"<402 response body>","expected_max_usd":0.05,"payee":"0x51be0000000000000000000000000000000002d4"}),
});
console.log(await res.json());

Example input

{
  "amount_usd": 0.02,
  "context": "<402 response body>",
  "expected_max_usd": 0.05,
  "payee": "0x51be0000000000000000000000000000000002d4"
}

More from AsterPayProvider status