{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apiacre-com/json-schema/apiacre-com-base-event-logs-input-schema.json",
  "title": "BaseEventLogsInput",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apiacre-com-openapi.json#/components/schemas/BaseEventLogsInput",
  "properties": {
    "contract": {
      "type": "string",
      "maxLength": 42,
      "minLength": 42,
      "title": "Contract",
      "description": "The 20-byte Base mainnet contract whose event logs are queried"
    },
    "topics": {
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "type": "array",
      "maxItems": 4,
      "minItems": 1,
      "title": "Topics",
      "description": "One required event-signature topic followed by optional indexed topic values or null wildcards. Signature-only scans are limited to 100 resolved blocks; adding an indexed value permits up to 2,000."
    },
    "lookback_blocks": {
      "type": "integer",
      "maximum": 2000.0,
      "minimum": 1.0,
      "title": "Lookback Blocks",
      "description": "Inclusive resolved Base blocks to scan; defaults to the 100-block signature-only ceiling and may be raised to 2,000 with an indexed topic value",
      "default": 100
    },
    "limit": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Limit",
      "description": "Maximum newest-first validated logs returned",
      "default": 50
    },
    "block_tag": {
      "type": "string",
      "enum": [
        "latest",
        "safe",
        "finalized"
      ],
      "title": "Block Tag",
      "description": "Base block tag resolved once as the inclusive upper bound",
      "default": "safe"
    }
  },
  "type": "object",
  "required": [
    "contract",
    "topics"
  ]
}