mcp.onchaindiligence.com/x402/preflight-payment
Evaluate a proposed payment against a structured, caller-supplied policy and optional OFAC SDN recipient screening, before execution. Returns ALLOW, REQUIRE_APPROVAL, or BLOCK with reasons, plus a signed OCD PREFLIGHT receipt anyone can independently verify. Policy evaluation only: OCD never holds, moves, or authorizes funds. The wallet, PayBox, or x402 client independently authorizes execution af
POST
https://mcp.onchaindiligence.com/x402/preflight-paymentUptime100% of 5 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://mcp.onchaindiligence.com/x402/preflight-payment", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"action":{"amount":"1.00","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","kind":"PAYMENT","network":"eip155:8453","recipient":"0x000000000000000000000000000000000000dEaD","resource":"https://service.example/api","sender":null},"options":{"screen_recipient_sanctions":true},"policy":{"allowed_assets":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"allowed_networks":["eip155:8453"],"allowed_re),
});
console.log(await res.json());Example input
{"action":{"amount":"1.00","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","kind":"PAYMENT","network":"eip155:8453","recipient":"0x000000000000000000000000000000000000dEaD","resource":"https://service.example/api","sender":null},"options":{"screen_recipient_sanctions":true},"policy":{"allowed_assets":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"allowed_networks":["eip155:8453"],"allowed_re