x402 Compliance Preflight
x402 revives the long-dormant HTTP 402 (Payment Required): a server answers 402, the agent pays on the spot in stablecoins, and gets a 200 with the content: one request, no account, no human in the loop. It lets machines pay per-call, per-unit, micro-value for APIs and content.
But paying fast is not paying compliantly. When the payer is code, who is paying, how far the mandate goes, and whether the counterparty is clean must all be decided before the money leaves: at machine speed. OceanAlt doesn't compete with x402; it acts as its companion, inserting a per-gate compliance check before settlement.
Our role: the compliance provider for x402
A companion, not a replacement
We don't rewrite x402 or compete with its facilitator for settlement. We sit one hop before settlement, rule on the payment intent, then hand off to x402 to finish 402 → 200.
Per-gate compliance check
An x402 payment first clears our gates: attribution (KYA), mandate & limits, a payment firewall, and counterparty AML screening. Pass and it settles; fail and it's stopped with a per-gate reason.
One line, protocol-neutral
Call /api/pay for a preflight before you initiate the x402 payment. No change to the x402 message, we don't custody your funds or consume a nonce. Also adapts to AP2 and other rails.
Verifiable, not a black box
Every decision ships per-gate checks and evidence you can click through to verify; the method maps to the openly published RAP framework.
Try it in your browser
Enter a payee address (0x / T / base58), plus optional amount and purpose, to preflight an x402 payment and see whether it clears: with a reason per gate. Stateless: no nonce consumed, no settlement, no credential required.
This is a read-only pre-check, not a payment
Real-payment loop test
The preview above costs nothing. Here you make a real $0.30 USDC payment to /api/x402/decision from your self-custodial wallet (Rabby / MetaMask): the official x402 flow (EIP-3009 signature + facilitator settlement), to verify the mainnet payment loop. Gasless for the payer; no private keys touched.
⚠ Real payment · $0.30 USDC (Base mainnet)
This widget makes a real $0.30 USDC payment to the paid endpoint from your own self-custodial wallet (Rabby / MetaMask), to verify the mainnet payment loop. It follows the official x402 flow and settlement is irreversible. The actual network and amount come from the endpoint's 402 quote — if the endpoint is currently on testnet, it is test USDC (not real money), labelled truthfully below.
How to wire it in
Before your agent initiates the x402 payment, run a preflight on the same intent; continue to settlement on allow, abort on block. Integration code, mandate configuration and the self-describing gate list all live in the compliance-gateway console.

