{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/walletlink-social/json-schema/walletlink-social-stats-schema.json",
  "title": "Stats",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/walletlink-social-openapi.yaml#/components/schemas/Stats",
  "type": "object",
  "required": [
    "total_wallets",
    "wallets_checked",
    "coverage",
    "farcaster_stats",
    "match_rates"
  ],
  "properties": {
    "total_wallets": {
      "type": "integer",
      "description": "Records carrying at least one identity. This is the numerator for\ncoverage.\n"
    },
    "wallets_checked": {
      "type": "integer",
      "description": "Every address we have looked at, including those we checked and\nfound bare. This is the denominator for coverage.\n"
    },
    "coverage": {
      "type": "object",
      "description": "Records carrying each identity type. The buckets overlap.",
      "required": [
        "twitter",
        "farcaster",
        "ens",
        "lens",
        "github"
      ],
      "properties": {
        "twitter": {
          "type": "integer"
        },
        "farcaster": {
          "type": "integer"
        },
        "ens": {
          "type": "integer"
        },
        "lens": {
          "type": "integer"
        },
        "github": {
          "type": "integer"
        }
      }
    },
    "farcaster_stats": {
      "type": "object",
      "required": [
        "avg_followers",
        "max_followers"
      ],
      "properties": {
        "avg_followers": {
          "type": "integer"
        },
        "max_followers": {
          "type": "integer"
        }
      }
    },
    "match_rates": {
      "type": "object",
      "description": "The measured per-chain match rates, for planning a spend before\nmaking it. Constants from a dated measurement of real collections\nagainst the index alone, not live counts; `measured_on` says when.\nPercentages are of holders with an X or Farcaster account, the\nbillable predicate.\n",
      "required": [
        "measured_on",
        "basis",
        "overall_either_pct",
        "by_chain"
      ],
      "properties": {
        "measured_on": {
          "type": "string",
          "description": "The measurement date, ISO 8601."
        },
        "basis": {
          "type": "string",
          "description": "What was measured, and how to read the rows."
        },
        "overall_either_pct": {
          "type": "number",
          "description": "Holders-weighted across the whole sample. It describes no\nsingle collection; use the row for your chain.\n"
        },
        "by_chain": {
          "type": "object",
          "description": "One row per measured chain.",
          "additionalProperties": {
            "type": "object",
            "required": [
              "collections",
              "holders",
              "farcaster_pct",
              "x_pct",
              "either_pct"
            ],
            "properties": {
              "collections": {
                "type": "integer"
              },
              "holders": {
                "type": "integer"
              },
              "farcaster_pct": {
                "type": "number"
              },
              "x_pct": {
                "type": "number"
              },
              "either_pct": {
                "type": "number",
                "description": "The planning number for that chain."
              }
            }
          }
        }
      }
    }
  }
}