Skip to content
Fourohtwo

A stateless rule check for agents that pay for x402 endpoints

x402.halowerk.com/policy/check

A stateless rule check for agents that pay for x402 endpoints. You supply the proposed payment, your policy and the amounts already spent this hour and this day; this endpoint keeps no ledger of its own and returns your counters unchanged. Every configured rule — max_per_call, max_per_hour, max_per_day, allowed_chains, allowed_assets, allowed_recipients, blocked_recipients, require_schema — is rep

BaseAnswering
POSThttps://x402.halowerk.com/policy/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.halowerk.com/policy/check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"policy":{"max_per_call":"1000000","max_per_day":"1000000","max_per_hour":"1000000"},"proposed_payment":{"amount_units":"1000000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"eip155:8453"}}),
});
console.log(await res.json());

Example input

{
  "policy": {
    "max_per_call": "1000000",
    "max_per_day": "1000000",
    "max_per_hour": "1000000"
  },
  "proposed_payment": {
    "amount_units": "1000000",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "chain": "eip155:8453"
  }
}

More from HALOWERK x402werkProvider status