{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hashdit/json-schema/hashdit-address-poisoning-batch-request-schema.json",
  "title": "AddressPoisoningBatchRequest",
  "description": "Analyze address-history targets and token contracts. user_addresses must contain at least one item; target_addresses plus token_addresses must contain at least one item; all three arrays together may contain at most 1000 items.",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hashdit-openapi.json#/components/schemas/AddressPoisoningBatchRequest",
  "type": "object",
  "required": [
    "user_addresses"
  ],
  "properties": {
    "user_addresses": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/AddressPoisoningBatchAddress"
      },
      "description": "Connected wallet addresses used for mimicry comparisons."
    },
    "target_addresses": {
      "type": "array",
      "default": [],
      "items": {
        "$ref": "#/$defs/AddressPoisoningBatchAddress"
      },
      "description": "Transaction-history addresses to analyze."
    },
    "token_addresses": {
      "type": "array",
      "default": [],
      "items": {
        "$ref": "#/$defs/AddressPoisoningBatchAddress"
      },
      "description": "Token contracts to compare with well-known tokens."
    }
  },
  "$defs": {
    "AddressPoisoningBatchAddress": {
      "type": "object",
      "required": [
        "chain_id",
        "address"
      ],
      "properties": {
        "chain_id": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ],
          "description": "Chain ID for this item. Each address is explicitly chain-scoped."
        },
        "address": {
          "type": "string",
          "description": "Address on the specified chain."
        }
      }
    }
  }
}