Skip to content
Fourohtwo

Automatic before-payment firewall for x402 clients

json-repair-api-9ybv.onrender.com/trust/x402/firewall

Automatic before-payment firewall for x402 clients. Runs after the merchant returns PAYMENT-REQUIRED but before the wallet creates/signs the merchant payment. Returns ALLOW, REVIEW or BLOCK based on exact request/challenge integrity and public merchant/payTo risk evidence. Spending authority remains with the caller's wallet/client policy unless full transaction clearance is used.

BaseAnswering
POSThttps://json-repair-api-9ybv.onrender.com/trust/x402/firewall

Uptime100% of 4 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://json-repair-api-9ybv.onrender.com/trust/x402/firewall", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"category":"ai-infrastructure","merchant_id":"merchant.example","payment_required":{"accepts":[{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x1111111111111111111111111111111111111111","scheme":"exact"}],"resource":{"description":"Merchant paid resource","mimeType":"application/json","url":"https://merchant.example/),
});
console.log(await res.json());

Example input

{"category":"ai-infrastructure","merchant_id":"merchant.example","payment_required":{"accepts":[{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x1111111111111111111111111111111111111111","scheme":"exact"}],"resource":{"description":"Merchant paid resource","mimeType":"application/json","url":"https://merchant.example/