This the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Network Status

Network status is important for several reasons and should return real-time information about the network.

Plugin Input

Please see heat-server-common/src/constants.ts for type definitions

interface { 
  /**
   * Enum of blockchain identifiers
   */ 
  blockchain?: Blockchains
}

Plugin Output

interface {
  /**
   * The height of the last block
   */
  lastBlockHeight: number;

  /**
   * The last block timestamp in UTC format
   */
  lastBlockTime: Date;

  /**
   * The unique block id (hex encoded)
   */
  lastBlockId: string;
}