OceanAltOceanAlt

x402 Compliance Preflight

A pre-settlement compliance layer: companion to x402

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 works as a companion to x402, inserting a per-gate compliance check before settlement; it does not compete with x402.

How do I screen an x402 payee before paying?

An x402 quote tells the agent where to pay: a payTo address on a network. Before signing it, send that address and network to OceanAlt's free decision endpoint, POST /api/decide. The answer is allow, review or decline, with a reason code and evidence you can check. Only allow means go ahead. To catch a spoofed seller, also screen the URL that returned the 402 with GET /api/endpoint.

API docs →

Our role: the compliance provider for x402

A companion to x402

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.

Decisions you can verify

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 for each gate. Stateless: no nonce consumed, no settlement, no credential required.

This is a read-only pre-check, not a payment

The pre-check never completes a payment, never settles, never consumes a nonce, and needs no credential. It only answers “would this clear?”. Try freely.

Real-payment loop test

The preview above costs nothing. Here you pay for real from your self-custodial wallet (Rabby / MetaMask): one decision for $0.002, or a credit pack ($0.10 for 100 decisions). It uses the official x402 flow (EIP-3009 signature, facilitator settlement). You pay no gas and no private key leaves your wallet.

⚠ Real payment · $0.002 USDC (Base mainnet)

This widget makes a real $0.002 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), and the label below says so.

🔒 OceanAlt will never ask for your seed phrase or private key. Verify the network and address.

Connect a wallet first.

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 pre-payment check console.

This page explains x402 and our companion role; the preflight is a stateless compliance check and is not legal or compliance advice.