{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cleartracedata-com/json-schema/cleartracedata-com-revert-rates-response-schema.json",
  "title": "RevertRatesResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cleartracedata-com-openapi.yml#/components/schemas/RevertRatesResponse",
  "properties": {
    "revert_rates": {
      "items": {
        "$ref": "#/$defs/RevertRate"
      },
      "type": "array",
      "title": "Revert Rates",
      "description": "Per-aggregator revert rates, highest first. Rows carry execution_model / revert_comparable — only compare rates within one execution model."
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total number of matching rows."
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "description": "The maximum number of rows returned."
    },
    "offset": {
      "type": "integer",
      "title": "Offset",
      "description": "The offset used for pagination."
    }
  },
  "type": "object",
  "required": [
    "revert_rates",
    "total",
    "limit",
    "offset"
  ],
  "$defs": {
    "RevertRate": {
      "properties": {
        "project": {
          "type": "string",
          "title": "Project",
          "description": "The aggregator or DEX routing the transactions."
        },
        "chain": {
          "type": "string",
          "title": "Chain",
          "description": "The blockchain network."
        },
        "revert_rate_pct": {
          "type": "number",
          "title": "Revert Rate Pct",
          "description": "Percentage of routing transactions that failed on-chain, after the sender-level bot filter (methodology v5, 2026-07-05)."
        },
        "reverted_txs": {
          "type": "integer",
          "title": "Reverted Txs",
          "description": "Number of reverted (failed) routing transactions from non-bot senders."
        },
        "total_routing_txs": {
          "type": "integer",
          "title": "Total Routing Txs",
          "description": "Total routing transactions analyzed (non-bot senders)."
        },
        "user_revert_rate_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Revert Rate Pct",
          "description": "Revert rate over ONLY senders whose own transactions to the venue succeeded at least 90% of the time over the window (<10% personal revert rate with at least one success; methodology v6, 2026-07-07). That is a threshold on the outcome being measured, not a classification of who the sender is: bounded under 10% by construction, so read it as the failure rate among consistently-succeeding senders, not as the share of all attempts that fail. The figure to read for cells whose headline is a documented bot-spam residual, subject to that caveat. Null when the cell has no v6 data OR no qualifying senders — disambiguate via user_txs (null = pre-v6, 0 = no qualifying senders)."
        },
        "user_reverted_txs": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Reverted Txs",
          "description": "Reverted transactions from senders passing the v6 threshold (<10% personal revert rate, at least one success). Null for pre-v6 data."
        },
        "user_txs": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Txs",
          "description": "Total transactions from senders passing the v6 threshold (<10% personal revert rate, at least one success). Null for pre-v6 data."
        },
        "execution_model": {
          "type": "string",
          "title": "Execution Model",
          "description": "How the venue settles: `router` (the user signs and submits the swap), `batch_auction` (the user signs an order; a solver settles a batch), `intent` (the user signs an intent; a resolver submits), or `unclassified` (submitter not established, or the venue blends models).",
          "default": "unclassified"
        },
        "revert_comparable": {
          "type": "boolean",
          "title": "Revert Comparable",
          "description": "Whether this revert rate is comparable to another venue's. TRUE only for `router` venues, where the failing transaction is the user's own. On a batch auction (CoW) or intent venue (1inch Fusion), an order that cannot be filled never becomes a transaction at all — so the on-chain revert rate is structurally near zero and measures solver/resolver behaviour, NOT user reliability. Do not rank across execution models: sorting this endpoint's rows by revert_rate_pct puts CoW and Fusion on top for a reason that has nothing to do with reliability.",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "project",
        "chain",
        "revert_rate_pct",
        "reverted_txs",
        "total_routing_txs"
      ],
      "title": "RevertRate"
    }
  }
}