{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitview-space/json-schema/bitview-space-block-fee-rates-entry-schema.json",
  "title": "BlockFeeRatesEntry",
  "description": "One time bucket of blocks. Each `avgFee_*` field is the bucket's mean of its blocks' own\npercentile of their non-coinbase transactions' effective fee rates, weighted by vsize (a block\nwithout such transactions counts as 0), rounded to a whole sat/vB.",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bitview-space-openapi.json#/components/schemas/BlockFeeRatesEntry",
  "type": "object",
  "properties": {
    "avgHeight": {
      "description": "Average block height in this bucket",
      "allOf": [
        {
          "$ref": "#/$defs/Height"
        }
      ]
    },
    "timestamp": {
      "description": "Average block timestamp in this bucket",
      "allOf": [
        {
          "$ref": "#/$defs/Timestamp"
        }
      ]
    },
    "avgFee_0": {
      "description": "Mean of the blocks' minimum fee rate (sat/vB)",
      "type": "integer",
      "format": "uint64",
      "minimum": 0
    },
    "avgFee_10": {
      "description": "Mean of the blocks' 10th percentile fee rate (sat/vB)",
      "type": "integer",
      "format": "uint64",
      "minimum": 0
    },
    "avgFee_25": {
      "description": "Mean of the blocks' 25th percentile fee rate (sat/vB)",
      "type": "integer",
      "format": "uint64",
      "minimum": 0
    },
    "avgFee_50": {
      "description": "Mean of the blocks' median fee rate (sat/vB)",
      "type": "integer",
      "format": "uint64",
      "minimum": 0
    },
    "avgFee_75": {
      "description": "Mean of the blocks' 75th percentile fee rate (sat/vB)",
      "type": "integer",
      "format": "uint64",
      "minimum": 0
    },
    "avgFee_90": {
      "description": "Mean of the blocks' 90th percentile fee rate (sat/vB)",
      "type": "integer",
      "format": "uint64",
      "minimum": 0
    },
    "avgFee_100": {
      "description": "Mean of the blocks' maximum fee rate (sat/vB)",
      "type": "integer",
      "format": "uint64",
      "minimum": 0
    }
  },
  "required": [
    "avgHeight",
    "timestamp",
    "avgFee_0",
    "avgFee_10",
    "avgFee_25",
    "avgFee_50",
    "avgFee_75",
    "avgFee_90",
    "avgFee_100"
  ],
  "$defs": {
    "Height": {
      "description": "A block height: how many blocks came before it.",
      "type": "integer",
      "format": "uint32",
      "minimum": 0
    },
    "Timestamp": {
      "description": "A Unix timestamp, in seconds.",
      "type": "integer",
      "format": "uint32",
      "minimum": 0
    }
  }
}