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
POST
https://x402.halowerk.com/policy/checkUptime100% 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
- x402.halowerk.com/benchmark/priceReads the public x402 Bazaar catalogue and finds offers comparable to yours, either from a resource_url whose 402 challenge is fetched without paying, or from a category and description you supply. Every comparable offer is listed with its price, its provider host, a similarity score and the terms both sides share, so comparability is justified rather than asserted; the formula, its weights and th0.006
- x402.halowerk.com/channel/auditChecks vouchers of a payment channel by computation only - nothing is ever claimed, redeemed or refunded. Signatures are verified cryptographically against the address each voucher claims to be signed by, in EIP-712 form when the typed data is supplied, otherwise as a plain message signature. Double spending is the expensive case and is checked in full: every voucher id occurring more than once is0.006
- x402.halowerk.com/facilitator/healthAsks every known facilitator what it supports and measures how long that answer takes. Reachability, supported chains, supported assets, supported schemes and the current response time are measured live on every call. Limits, and they are the important part: error rate over 24 hours, uptime over 7 days and latency percentiles CANNOT be delivered. They require a series of own measurements every few0.003
- x402.halowerk.com/guard/replayA stateful duplicate check for agents that settle x402 payments. Supply any of payment_id, payload_hash and nonce; each is hashed with SHA-256 before storage, so the service keeps fingerprints and timestamps and never the values themselves, never a payload, never an address. The answer states for every supplied identifier whether it was seen before, when it was first and last seen, how often, and 0.002
- x402.halowerk.com/listing/doctorx402 listing quality check for one endpoint: one unpaid probe of a public https x402 route that rates its endpoint discovery and Bazaar listing readiness and returns prioritized findings with fixes: 402 and PAYMENT-REQUIRED, x402 v2, accepts, payTo checksum, resource.url, description limit, bazaar example and schema, header size, /.well-known/x402, llms.txt, openapi, MCP payment form, CDP listing 0.10
- x402.halowerk.com/offer/parseFetches the 402 challenge of a foreign endpoint without paying anything — no payment header, no signature, no settlement — or parses a challenge you already hold. Returns x402_version, every accepts entry with scheme, network, resolved network name and chain id, asset, symbol, decimals and the amount both in raw units and in human form, plus the resource block and any expiry. amount_human is compu0.002
- x402.halowerk.com/offer/validateValidates a 402 challenge — fetched from a URL without paying, or supplied directly — against PaymentRequiredV1Schema and PaymentRequiredV2Schema of the installed @x402/core reference implementation. Reports the detected version and how it was detected, every error with field, expected, found and spec_ref naming package, version, schema and field path, whether the network is valid CAIP-2, whether 0.002
- x402.halowerk.com/receipt/verifyCryptographic verification of the offer-receipt extension of x402. Accepts a signed offer in eip712, jws or eip191 form — either bundled as {format, payload, signature} or as payload plus a separate signature — and an optional signed receipt. Recovers the signer, compares it with the payTo of the offer, compares receipt and offer field by field and names every divergence with the value on each sid0.003
- x402.halowerk.com/reconcileReads all incoming ERC-20 transfers of one token to one address within a block or time window and matches them against the receipts you supply. Matching runs first over the transaction hash, which is the strongest link, and otherwise over amount plus payer plus a stated time tolerance; the method used is named for every single match, so a weak match is never mistaken for a strong one. The answer l0.008
- x402.halowerk.com/route/optimizeTakes what the caller holds and what the seller accepts and works out which combinations can settle the amount. All costs are brought into USD, otherwise no comparison is possible: gas on the source chain plus, where needed, the cost of a swap or a bridge. Routes that require a swap or a bridge are marked explicitly - they often look cheaper on paper and are slower and riskier in practice. Every a0.005
- x402.halowerk.com/settlement/verifyx402 payment header verify settlement check: confirm settlement using the transaction hash in PAYMENT-RESPONSE. Compares on-chain ERC-20 transfers against the expected recipient, token and amount, and reports confirmation and finality.0.002
- x402.halowerk.com/trust/checkOne unpaid public HTTPS probe with DNS-pinned SSRF protection. Checks x402 v2 exact-payment terms, resource URL, body/header consistency and a bounded Base USDC option. Records only actual observations. Does not establish delivery, seller ownership or sanctions clearance. Probe failures are unknown, not a proven outage.0.002
