{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalanche/main/json-schema/EvmBlock.json",
  "title": "EvmBlock",
  "type": "object",
  "properties": {
    "chainId": {
      "type": "string",
      "description": "The EVM chain ID on which the block was created.",
      "examples": [
        "43114"
      ]
    },
    "blockNumber": {
      "type": "string",
      "description": "The block number on the chain.",
      "examples": [
        "339"
      ]
    },
    "blockTimestamp": {
      "type": "number",
      "description": "The block creation (proposal) timestamp in seconds",
      "examples": [
        1648672486
      ]
    },
    "blockTimestampMilliseconds": {
      "type": "number",
      "description": "The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.",
      "examples": [
        1648672486000
      ]
    },
    "blockMinDelayExcess": {
      "type": "number",
      "description": "Minimum block delay in milliseconds. Available only after Granite upgrade.",
      "examples": [
        7477290
      ]
    },
    "blockHash": {
      "type": "string",
      "description": "The block hash identifier.",
      "examples": [
        "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c"
      ]
    },
    "txCount": {
      "type": "number",
      "description": "The number of evm transactions in the block."
    },
    "baseFee": {
      "type": "string",
      "description": "The base gas fee for a transaction to be included in the block."
    },
    "gasUsed": {
      "type": "string",
      "description": "The gas used for transactions in the block."
    },
    "gasLimit": {
      "type": "string",
      "description": "The total gas limit set for transactions in the block."
    },
    "gasCost": {
      "type": "string"
    },
    "parentHash": {
      "type": "string",
      "description": "The hash of the parent block."
    },
    "feesSpent": {
      "type": "string",
      "description": "The amount of fees spent/burned for transactions in the block."
    },
    "cumulativeTransactions": {
      "type": "string",
      "description": "The cumulative number of transactions for the chain including this block."
    }
  },
  "required": [
    "chainId",
    "blockNumber",
    "blockTimestamp",
    "blockHash",
    "txCount",
    "baseFee",
    "gasUsed",
    "gasLimit",
    "gasCost",
    "parentHash",
    "feesSpent",
    "cumulativeTransactions"
  ]
}