{
  "$id": "rosetta-block.schema.json",
  "type": "object",
  "title": "RosettaBlock",
  "description": "Blocks contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be inalterable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.",
  "required": ["block_identifier", "parent_block_identifier", "timestamp", "transactions"],
  "properties": {
    "block_identifier": {
      "$ref": "./rosetta-block-identifier.schema.json"
    },
    "parent_block_identifier": {
      "$ref": "./rosetta-parent-block-identifier.schema.json"
    },
    "timestamp": {
      "type": "integer",
      "description": "The timestamp of the block in milliseconds since the Unix Epoch. The timestamp is stored in milliseconds because some blockchains produce blocks more often than once a second."
    },
    "transactions": {
      "type": "array",
      "description": "All the transactions in the block",
      "items": {
        "$ref": "./rosetta-transaction.schema.json"
      }
    },
    "metadata": {
      "type": "object",
      "description": "meta data",
      "required": ["transactions_root", "difficulty"],
      "properties": {
        "transactions_root": {
          "type": "string",
          "description": ""
        },
        "difficulty": {
          "type": "string",
          "description": ""
        }
      }
    }
  }
}
