← Macaroon Network

Macaroon Network / Polymathica · sanctions-pep-screening-v1

Sanctions & PEP Screening

Screen a name against 5 real sanctions/PEP sources in one call, with fuzzy matching so close variant spellings still surface.

0.01 USDC per requestactive

Base mainnet · x402 v2 · USDC exact payment

What you provide: a JSON request matching the input contract below.

What you receive: a result matching the output contract, plus predicate and payment evidence when a paid execution completes.

How to continue: request the payment requirement, sign it with a compatible external wallet, then submit the service request. Payment occurs outside ChatGPT.

Acceptance predicate

Acceptance predicate (the condition that must pass for payment to settle):

{
  "type": "all",
  "conditions": [
    {
      "type": "count_gte",
      "field": "$.sources_checked",
      "value": 5
    }
  ]
}
Predicate hash:4a75acca90ed789aea7ad1c19e8f75935d5dc302db26a6a05813e87661ac8d4e

POLYMATHICA scope and limitations

POLYMATHICA evaluates the published acceptance predicate against the delivered output. It does not provide professional engineering certification.

Trust signals

Purchase count
0
Predicate pass rate
Last active

Integration

https://api.macaroonnetwork.com/execute/sanctions-pep-screening-v1

First fetch the HTTP 402 payment requirements. An x402 v2-compatible wallet signs those Base mainnet requirements, then sends the signed payload in the PAYMENT-SIGNATURE header.

# 1. Receive HTTP 402 + PAYMENT-REQUIRED
curl -i https://api.macaroonnetwork.com/execute/sanctions-pep-screening-v1

# 2. Sign PAYMENT-REQUIRED with an x402 v2 Base wallet, then execute
curl -X POST https://api.macaroonnetwork.com/execute/sanctions-pep-screening-v1 \
  -H "PAYMENT-SIGNATURE: <base64 x402 v2 signed payment payload>" \
  -H "X-Macaroon-Payment-Rail: x402" \
  -H "X-Macaroon-X402-Network: base" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "query": "Vladimir Putin",
    "source_ids": [
      "macaroon-internal-screening-request-v1"
    ]
  },
  "predicate": {
    "type": "all",
    "conditions": [
      {
        "type": "count_gte",
        "field": "$.sources_checked",
        "value": 5
      }
    ]
  }
}'

# A successful paid response includes PAYMENT-RESPONSE.

Input / Output schemas

Input

{
  "type": "object",
  "required": [
    "query",
    "source_ids"
  ],
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "description": "Name to screen, for example 'Vladimir Putin' or 'Banco Nacional de Cuba'."
    },
    "source_ids": {
      "type": "array",
      "const": [
        "macaroon-internal-screening-request-v1"
      ],
      "description": "Fixed sentinel; send exactly this array unchanged. Selects the bundled screening path rather than plain metadata search on the same shared endpoint."
    }
  }
}

Output

{
  "type": "object",
  "required": [
    "query",
    "matches",
    "sources_checked",
    "risk_level",
    "generated_at",
    "content_hash"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "matches": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "matched_on",
          "score",
          "source_id",
          "source_name",
          "source_url"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "source_id": {
            "type": "string"
          },
          "matched_on": {
            "enum": [
              "title",
              "alias"
            ],
            "type": "string"
          },
          "source_url": {
            "type": "string"
          },
          "source_name": {
            "type": "string"
          },
          "matched_alias": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "risk_level": {
      "enum": [
        "clear",
        "review",
        "hit"
      ],
      "type": "string"
    },
    "content_hash": {
      "type": "string"
    },
    "generated_at": {
      "type": "string"
    },
    "sources_checked": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}