{
  "openapi": "3.1.0",
  "info": {
    "title": "SML PreSign",
    "version": "1.0.0",
    "description": "Simulate and screen before you sign.",
    "contact": {
      "name": "Script Master Labs LLC",
      "url": "https://scriptmasterlabs.com"
    }
  },
  "servers": [
    {
      "url": "https://presign.scriptmasterlabs.com"
    }
  ],
  "paths": {
    "/v1/verdict": {
      "post": {
        "operationId": "verdict",
        "summary": "Full pre-sign verdict",
        "description": "One allow/review/block decision before you sign: both sides screened (OFAC SDN + UN), issuer freezes (Circle USDC, Tether USDT), 1-hop sanctions exposure, counterparty story, simulation (x402 payment or EVM tx), your policy, signed receipt. 12 chains.",
        "tags": [
          "presign"
        ],
        "x-price-usd": 0.004,
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challenge": {
                    "description": "x402 402 body / PAYMENT-REQUIRED header (x402 mode)"
                  },
                  "payment": {
                    "description": "signed x402 payment payload (optional)"
                  },
                  "payer": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string",
                    "enum": [
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon",
                      "avalanche",
                      "bsc",
                      "xrpl",
                      "xahau",
                      "solana",
                      "tron",
                      "bitcoin"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "data": {
                    "type": "string",
                    "description": "EVM calldata (tx mode)"
                  },
                  "value": {
                    "type": "string",
                    "description": "wei"
                  },
                  "amount": {
                    "type": "string"
                  },
                  "from_name": {
                    "type": "string"
                  },
                  "to_name": {
                    "type": "string"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "chain": "base",
                "from": "0xYourAgentWallet",
                "to": "0xCounterparty",
                "amount": "0.01"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with findings, facts and a signed receipt"
          },
          "400": {
            "description": "Bad input"
          },
          "402": {
            "description": "Payment required (x402 v2 challenge in body and PAYMENT-REQUIRED header)"
          }
        }
      }
    },
    "/free/v1/verdict": {
      "post": {
        "operationId": "verdict_free",
        "summary": "Full pre-sign verdict (free lane)",
        "description": "Same as /v1/verdict; 25 calls/day per IP",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challenge": {
                    "description": "x402 402 body / PAYMENT-REQUIRED header (x402 mode)"
                  },
                  "payment": {
                    "description": "signed x402 payment payload (optional)"
                  },
                  "payer": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string",
                    "enum": [
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon",
                      "avalanche",
                      "bsc",
                      "xrpl",
                      "xahau",
                      "solana",
                      "tron",
                      "bitcoin"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "data": {
                    "type": "string",
                    "description": "EVM calldata (tx mode)"
                  },
                  "value": {
                    "type": "string",
                    "description": "wei"
                  },
                  "amount": {
                    "type": "string"
                  },
                  "from_name": {
                    "type": "string"
                  },
                  "to_name": {
                    "type": "string"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "chain": "base",
                "from": "0xYourAgentWallet",
                "to": "0xCounterparty",
                "amount": "0.01"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict"
          },
          "429": {
            "description": "Free quota used"
          }
        }
      }
    },
    "/v1/preflight/x402": {
      "post": {
        "operationId": "preflight_x402",
        "summary": "x402 payment preflight",
        "description": "Paste the 402 challenge you are about to pay (and optionally your signed payment). Checks asset contract, amount vs quote, EIP-712 domain, EIP-3009 support, payer balance, dry-run of the value move, signature recovery, nonce reuse, expiry, payTo sanctions/freeze/exposure and seller domain age. Returns a signed verdict.",
        "tags": [
          "presign"
        ],
        "x-price-usd": 0.003,
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "challenge"
                ],
                "properties": {
                  "challenge": {
                    "description": "402 JSON body, base64 PAYMENT-REQUIRED header, or one requirements object"
                  },
                  "payer": {
                    "type": "string"
                  },
                  "payment": {
                    "description": "x402 payment payload (JSON or base64 PAYMENT-SIGNATURE)"
                  },
                  "index": {
                    "type": "integer"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "challenge": {
                  "x402Version": 2,
                  "accepts": [
                    {
                      "scheme": "exact",
                      "network": "eip155:8453",
                      "amount": "10000",
                      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                      "payTo": "0x…"
                    }
                  ]
                },
                "payer": "0x…"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with findings, facts and a signed receipt"
          },
          "400": {
            "description": "Bad input"
          },
          "402": {
            "description": "Payment required (x402 v2 challenge in body and PAYMENT-REQUIRED header)"
          }
        }
      }
    },
    "/free/v1/preflight/x402": {
      "post": {
        "operationId": "preflight_x402_free",
        "summary": "x402 payment preflight (free lane)",
        "description": "Same as /v1/preflight/x402; 25 calls/day per IP",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "challenge"
                ],
                "properties": {
                  "challenge": {
                    "description": "402 JSON body, base64 PAYMENT-REQUIRED header, or one requirements object"
                  },
                  "payer": {
                    "type": "string"
                  },
                  "payment": {
                    "description": "x402 payment payload (JSON or base64 PAYMENT-SIGNATURE)"
                  },
                  "index": {
                    "type": "integer"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "challenge": {
                  "x402Version": 2,
                  "accepts": [
                    {
                      "scheme": "exact",
                      "network": "eip155:8453",
                      "amount": "10000",
                      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                      "payTo": "0x…"
                    }
                  ]
                },
                "payer": "0x…"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict"
          },
          "429": {
            "description": "Free quota used"
          }
        }
      }
    },
    "/v1/simulate/tx": {
      "post": {
        "operationId": "simulate_tx",
        "summary": "EVM transaction simulation",
        "description": "Simulate an unsigned EVM transaction (eth_simulateV1 with transfer tracing): revert reason, gas, decoded intent, your balance changes, approvals (flags unlimited and operator approvals), every counterparty screened. 7 EVM chains.",
        "tags": [
          "presign"
        ],
        "x-price-usd": 0.004,
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "chain",
                  "from"
                ],
                "properties": {
                  "chain": {
                    "type": "string",
                    "enum": [
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon",
                      "avalanche",
                      "bsc"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "data": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "chain": "ethereum",
                "from": "0x…",
                "to": "0x…",
                "data": "0x095ea7b3…",
                "value": "0"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with findings, facts and a signed receipt"
          },
          "400": {
            "description": "Bad input"
          },
          "402": {
            "description": "Payment required (x402 v2 challenge in body and PAYMENT-REQUIRED header)"
          }
        }
      }
    },
    "/free/v1/simulate/tx": {
      "post": {
        "operationId": "simulate_tx_free",
        "summary": "EVM transaction simulation (free lane)",
        "description": "Same as /v1/simulate/tx; 25 calls/day per IP",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "chain",
                  "from"
                ],
                "properties": {
                  "chain": {
                    "type": "string",
                    "enum": [
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon",
                      "avalanche",
                      "bsc"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "data": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "chain": "ethereum",
                "from": "0x…",
                "to": "0x…",
                "data": "0x095ea7b3…",
                "value": "0"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict"
          },
          "429": {
            "description": "Free quota used"
          }
        }
      }
    },
    "/v1/screen/address": {
      "post": {
        "operationId": "screen_address",
        "summary": "Counterparty address screen",
        "description": "Screen any address on 12 chains: OFAC SDN crypto addresses (every listed asset), issuer freeze (USDC/USDT), 1-hop exposure to sanctioned addresses, XRPL dest-tag / deposit-auth / blackhole, Solana token-account traps, plus a plain-English counterparty story. Signed receipt.",
        "tags": [
          "presign"
        ],
        "x-price-usd": 0.002,
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "address"
                ],
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string",
                    "enum": [
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon",
                      "avalanche",
                      "bsc",
                      "xrpl",
                      "xahau",
                      "solana",
                      "tron",
                      "bitcoin"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "optional owner name to screen too"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "address": "0x…",
                "chain": "base"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with findings, facts and a signed receipt"
          },
          "400": {
            "description": "Bad input"
          },
          "402": {
            "description": "Payment required (x402 v2 challenge in body and PAYMENT-REQUIRED header)"
          }
        }
      }
    },
    "/free/v1/screen/address": {
      "post": {
        "operationId": "screen_address_free",
        "summary": "Counterparty address screen (free lane)",
        "description": "Same as /v1/screen/address; 25 calls/day per IP",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "address"
                ],
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string",
                    "enum": [
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon",
                      "avalanche",
                      "bsc",
                      "xrpl",
                      "xahau",
                      "solana",
                      "tron",
                      "bitcoin"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "optional owner name to screen too"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "address": "0x…",
                "chain": "base"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict"
          },
          "429": {
            "description": "Free quota used"
          }
        }
      }
    },
    "/v1/screen/entity": {
      "post": {
        "operationId": "screen_entity",
        "summary": "Person / company name screen",
        "description": "Fuzzy-match a person, company or vessel name against the OFAC SDN list and the UN Security Council Consolidated List (primary names + aliases). Scores, programs and source links. Signed receipt.",
        "tags": [
          "presign"
        ],
        "x-price-usd": 0.002,
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Individual",
                      "Entity",
                      "Vessel",
                      "Aircraft"
                    ]
                  },
                  "threshold": {
                    "type": "number"
                  },
                  "limit": {
                    "type": "integer"
                  }
                }
              },
              "example": {
                "name": "Garantex Europe"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with findings, facts and a signed receipt"
          },
          "400": {
            "description": "Bad input"
          },
          "402": {
            "description": "Payment required (x402 v2 challenge in body and PAYMENT-REQUIRED header)"
          }
        }
      }
    },
    "/free/v1/screen/entity": {
      "post": {
        "operationId": "screen_entity_free",
        "summary": "Person / company name screen (free lane)",
        "description": "Same as /v1/screen/entity; 25 calls/day per IP",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Individual",
                      "Entity",
                      "Vessel",
                      "Aircraft"
                    ]
                  },
                  "threshold": {
                    "type": "number"
                  },
                  "limit": {
                    "type": "integer"
                  }
                }
              },
              "example": {
                "name": "Garantex Europe"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict"
          },
          "429": {
            "description": "Free quota used"
          }
        }
      }
    },
    "/v1/screen/batch": {
      "post": {
        "operationId": "screen_batch",
        "summary": "Batch address screen (up to 50)",
        "description": "Screen up to 50 addresses across 12 chains in one call (sanctions + issuer freeze + on-chain facts + story). One signed receipt plus per-item verdicts.",
        "tags": [
          "presign"
        ],
        "x-price-usd": 0.03,
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "required": [
                        "address"
                      ],
                      "properties": {
                        "address": {
                          "type": "string"
                        },
                        "chain": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "items": [
                  {
                    "address": "0x…",
                    "chain": "base"
                  },
                  {
                    "address": "T…",
                    "chain": "tron"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with findings, facts and a signed receipt"
          },
          "400": {
            "description": "Bad input"
          },
          "402": {
            "description": "Payment required (x402 v2 challenge in body and PAYMENT-REQUIRED header)"
          }
        }
      }
    },
    "/free/v1/screen/batch": {
      "post": {
        "operationId": "screen_batch_free",
        "summary": "Batch address screen (up to 50) (free lane)",
        "description": "Same as /v1/screen/batch; 25 calls/day per IP",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "required": [
                        "address"
                      ],
                      "properties": {
                        "address": {
                          "type": "string"
                        },
                        "chain": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "policy": {
                    "type": "object",
                    "description": "Optional: your rules. Hashed into the signed receipt.",
                    "properties": {
                      "block_on_review": {
                        "type": "boolean"
                      },
                      "max_amount": {
                        "type": "number"
                      },
                      "allowed_chains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "allowlist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "denylist": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "min_counterparty_tx": {
                        "type": "number"
                      },
                      "min_domain_age_days": {
                        "type": "number"
                      },
                      "ignore": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "items": [
                  {
                    "address": "0x…",
                    "chain": "base"
                  },
                  {
                    "address": "T…",
                    "chain": "tron"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict"
          },
          "429": {
            "description": "Free quota used"
          }
        }
      }
    },
    "/v1/verify": {
      "post": {
        "operationId": "verify_receipt",
        "summary": "Verify a receipt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "receipt": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "{valid, reason}"
          }
        }
      }
    }
  }
}