Evaluate a proposed payment against a structured, caller-supplied policy and optional reci
Evaluate a proposed payment against a structured, caller-supplied policy and optional recipient sanctions 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 afterward; an ALLOW here does not guarantee it will proceed.
10000 (raw units)
price
2
calls / 30d
2
unique payers
2026-09-17
updated
Provider
mcp.onchaindiligence.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x63c347d7e42b940e79AfEC3D172bFc2921b6c897",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"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_resource_origins": [
"https://service.example"
],
"expected_recipient": null,
"max_amount": "5.00"
},
"references": {
"mandate_digest": null
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"checks": [
{
"evidence_digest": null,
"id": "amount-within-max",
"result": "PASS",
"summary": "The proposed amount is within the caller-configured maximum."
}
],
"decision": {
"authorized": true,
"reasons": [
"All configured policy checks passed."
],
"status": "ALLOW"
},
"receipt": {
"proof": {
"algorithm": "ed25519",
"key_id": "ed25519-EXAMPLEKEY000000",
"signature": "UN4TzBvkRsf0eGm4…ZFyElhq1Cg",
"signed": true
},
"receipt": {
"receipt_id": "OCD-RCP-EXAMPLE-0000-0000-0000",
"receipt_type": "PREFLIGHT"
},
"schema": "onchaindiligence.public-action-receipt.v1"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"action": {
"type": "object"
},
"options": {
"type": "object"
},
"policy": {
"type": "object"
},
"references": {
"type": "object"
}
}
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"checks": {
"type": "array"
},
"decision": {
"properties": {
"authorized": {
"type": [
"boolean",
"null"
]
},
"reasons": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"enum": [
"ALLOW",
"REQUIRE_APPROVAL",
"BLOCK",
"UNKNOWN"
],
"type": "string"
}
},
"type": "object"
},
"receipt": {
"description": "Complete onchaindiligence.public-action-receipt.v1 envelope.",
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://mcp.onchaindiligence.com/x402/preflight-payment" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://mcp.onchaindiligence.com/x402/preflight-payment");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://mcp.onchaindiligence.com/x402/preflight-payment")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/12404.json, and this resource appears in /discovery/resources and /discovery/search.