Cardano · Schema

Network-Eras

BlockchainCryptocurrencyProof-of-StakeSmart ContractsWeb3
View JSON Schema on GitHub

JSON Schema

network-eras.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cardano.blockfrost.io/schema/network-eras",
  "title": "Network-Eras",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "start": {
        "type": "object",
        "description": "Start of the blockchain era,\nrelative to the start of the network\n",
        "properties": {
          "time": {
            "type": "integer",
            "description": "Time in seconds relative to the start time of the network"
          },
          "slot": {
            "type": "integer",
            "description": "Absolute slot number"
          },
          "epoch": {
            "type": "integer",
            "description": "Epoch number"
          }
        },
        "required": [
          "time",
          "slot",
          "epoch"
        ]
      },
      "end": {
        "type": "object",
        "description": "End of the blockchain era,\nrelative to the start of the network\n",
        "properties": {
          "time": {
            "type": "integer",
            "description": "Time in seconds relative to the start time of the network"
          },
          "slot": {
            "type": "integer",
            "description": "Absolute slot number"
          },
          "epoch": {
            "type": "integer",
            "description": "Epoch number"
          }
        },
        "required": [
          "time",
          "slot",
          "epoch"
        ]
      },
      "parameters": {
        "type": "object",
        "description": "Era parameters",
        "properties": {
          "epoch_length": {
            "type": "integer",
            "description": "Epoch length in number of slots"
          },
          "slot_length": {
            "type": "integer",
            "description": "Slot length in seconds"
          },
          "safe_zone": {
            "type": "integer",
            "description": "Zone in which it is guaranteed that no hard fork can take place"
          }
        },
        "required": [
          "epoch_length",
          "slot_length",
          "safe_zone"
        ]
      }
    },
    "required": [
      "start",
      "end",
      "parameters"
    ]
  },
  "example": [
    {
      "start": {
        "time": 0,
        "slot": 0,
        "epoch": 0
      },
      "end": {
        "time": 89856000,
        "slot": 4492800,
        "epoch": 208
      },
      "parameters": {
        "epoch_length": 21600,
        "slot_length": 20,
        "safe_zone": 4320
      }
    },
    {
      "start": {
        "time": 89856000,
        "slot": 4492800,
        "epoch": 208
      },
      "end": {
        "time": 101952000,
        "slot": 16588800,
        "epoch": 236
      },
      "parameters": {
        "epoch_length": 432000,
        "slot_length": 1,
        "safe_zone": 129600
      }
    }
  ]
}