{
  "type": "object",
  "properties": {
    "network_id": {
      "description": "The Graph Network ID https://thegraph.com/networks",
      "type": "string",
      "enum": [
        "mainnet",
        "bsc",
        "base",
        "arbitrum-one",
        "optimism",
        "matic",
        "unichain"
      ],
      "example": "mainnet"
    },
    "pool": {
      "description": "Filter by contract address",
      "type": "string",
      "pattern": "^(0[xX])?[0-9a-fA-F]{40}$",
      "example": "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"
    },
    "caller": {
      "description": "Filter by address",
      "type": "string",
      "pattern": "^(0[xX])?[0-9a-fA-F]{40}$"
    },
    "sender": {
      "description": "Filter by address",
      "type": "string",
      "pattern": "^(0[xX])?[0-9a-fA-F]{40}$"
    },
    "recipient": {
      "description": "Filter by address",
      "type": "string",
      "pattern": "^(0[xX])?[0-9a-fA-F]{40}$"
    },
    "protocol": {
      "description": "Protocol name",
      "type": "string",
      "enum": [
        "uniswap_v2",
        "uniswap_v3"
      ],
      "example": "uniswap_v3"
    },
    "startTime": {
      "description": "UNIX timestamp in seconds.",
      "type": "number",
      "minimum": 0
    },
    "endTime": {
      "description": "UNIX timestamp in seconds.",
      "type": "number",
      "minimum": 0
    },
    "orderBy": {
      "description": "The field by which to order the results.",
      "type": "string",
      "enum": [
        "timestamp"
      ],
      "default": "timestamp"
    },
    "orderDirection": {
      "description": "The order in which to return the results: Ascending (asc) or Descending (desc).",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "default": "desc"
    },
    "transaction_id": {
      "description": "Filter by transaction",
      "type": "string",
      "pattern": "^(0[xX])?[0-9a-fA-F]{64}$"
    },
    "limit": {
      "description": "The maximum number of items returned in a single request.",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 10
    },
    "page": {
      "description": "The page number of the results to return.",
      "type": "integer",
      "minimum": 1,
      "default": 1
    }
  },
  "required": []
}