{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anygas-xyz/json-schema/anygas-xyz-compare-result-schema.json",
  "title": "CompareResult",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anygas-xyz-openapi.json#/components/schemas/CompareResult",
  "type": "object",
  "properties": {
    "lane": {
      "type": "object",
      "properties": {
        "fromChain": {
          "type": "string"
        },
        "toChain": {
          "type": "string"
        },
        "applicableRails": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "estOutUnit": {
          "type": "string"
        }
      }
    },
    "quotes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rail": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "estOut": {
            "type": "string"
          },
          "etaSeconds": {
            "type": "number"
          },
          "best": {
            "type": "boolean"
          },
          "effectiveFeePct": {
            "type": "number"
          },
          "qualityScore": {
            "type": "integer"
          }
        },
        "additionalProperties": true
      }
    },
    "best": {
      "type": "string"
    },
    "comparedRails": {
      "type": "integer"
    },
    "railsAttempted": {
      "type": "integer"
    },
    "guard": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "effectiveFeePct": {
          "type": "number"
        },
        "thresholdPct": {
          "type": "number"
        },
        "recommendedMinInput": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    }
  },
  "additionalProperties": true
}