{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anygas-xyz/json-schema/anygas-xyz-batch-request-schema.json",
  "title": "BatchRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anygas-xyz-primitives-api-openapi.yml#/components/schemas/BatchRequest",
  "type": "object",
  "required": [
    "routes"
  ],
  "properties": {
    "routes": {
      "type": "array",
      "description": "Up to 20 legs; toAddress required per leg.",
      "items": {
        "type": "object",
        "properties": {
          "fromChain": {},
          "fromToken": {
            "type": "string"
          },
          "toChain": {},
          "toToken": {
            "type": "string"
          },
          "amount": {
            "type": "string"
          },
          "toAddress": {
            "type": "string"
          }
        }
      }
    },
    "live": {
      "type": "boolean",
      "default": false,
      "description": "Ignored unless the watcher runs with PRIMITIVES_LIVE=1."
    }
  }
}