{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dogechain-com/json-schema/dogechain-com-fees-schema.json",
  "title": "Fees",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dogechain-com-openapi.json#/components/schemas/Fees",
  "properties": {
    "fee_rate_koinu_per_byte": {
      "properties": {
        "max": {
          "type": [
            "number",
            "null"
          ]
        },
        "median": {
          "type": [
            "number",
            "null"
          ]
        },
        "min": {
          "type": "number"
        }
      },
      "required": [
        "min",
        "median",
        "max"
      ],
      "type": "object"
    },
    "least_fee_rate_koinu_per_byte": {
      "description": "The rate behind min_fee: the lowest rate any pool has lately mined at, never below the 100 koinu/byte relay floor.",
      "type": "number"
    },
    "median_fee_paid": {
      "anyOf": [
        {
          "$ref": "#/$defs/Amount"
        },
        {
          "type": "null"
        }
      ]
    },
    "median_fee_paid_blocks": {
      "type": "integer"
    },
    "mempool": {
      "properties": {
        "bytes": {
          "type": "integer"
        },
        "next_block_txs": {
          "type": [
            "integer",
            "null"
          ]
        },
        "txs": {
          "type": "integer"
        }
      },
      "required": [
        "txs",
        "bytes",
        "next_block_txs"
      ],
      "type": "object"
    },
    "price_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "simple_payment": {
      "properties": {
        "bytes": {
          "type": "integer"
        },
        "min_fee": {
          "$ref": "#/$defs/Amount",
          "description": "The least that still gets mined, by the pools that take the cheapest fees; it can wait several blocks."
        },
        "suggested_fee": {
          "$ref": "#/$defs/Amount",
          "description": "What recent blocks show gets mined within about 3 blocks 95 times in 100, rounded up to a whole 0.01 DOGE."
        }
      },
      "required": [
        "bytes",
        "min_fee",
        "suggested_fee"
      ],
      "type": "object"
    },
    "suggested_fee_basis": {
      "description": "Why the suggestion is what it is, in plain English.",
      "type": "string"
    },
    "suggested_fee_rate_koinu_per_byte": {
      "description": "The rate behind suggested_fee.",
      "type": "number"
    }
  },
  "required": [
    "fee_rate_koinu_per_byte",
    "least_fee_rate_koinu_per_byte",
    "simple_payment",
    "suggested_fee_rate_koinu_per_byte",
    "suggested_fee_basis",
    "median_fee_paid",
    "median_fee_paid_blocks",
    "mempool",
    "price_usd"
  ],
  "type": "object",
  "$defs": {
    "Amount": {
      "description": "DOGE with 8 decimals, as a string.",
      "pattern": "^-?[0-9]+\\.[0-9]{8}$",
      "type": "string"
    }
  }
}