Api Endpoint

OnChainDiligence

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.

Open interactive test console

Offering

Provider
mcp.onchaindiligence.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Legal And Compliance
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://mcp.onchaindiligence.com/x402/preflight-payment
MIME type
Not provided
First seen
2026-10-16T01:50:24.663Z
Last seen
Tags
payment-preflight, agent-payments, policy, authorization, USDC

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x63c347d7e42b940e79AfEC3D172bFc2921b6c897"
  }
]

Observed health

Status
Reachable
Latest latency
108 ms
Average latency
228 ms
HTTP status
400
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "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 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"
}