Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Latest commit

 

History

History
26 lines (21 loc) · 972 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 972 Bytes

OntMonitor

The OntMonitor tracks key metrics of the Ontology blockchain - latest block, blocktime, tps and tx per block. It can be subscribed to in three ways:

  1. View the network stats at http://monitor.ryu.games.
  2. Follow Twitter updates at @OntMonitor.
  3. Subscribe to StatUpdate web socket events from http://monitor.ryu.games.

Socket.IO Example

const socket = io('monitor.ryu.games');

socket.on('StatUpdate', (data) => {
  const {
    latest,                 // latest block
    previous,               // previous period of blocks (1k)
    elapsedTime,            // time to propagate the blocks
    totalTransactions,      // total transactions in the period
    txPerSecond,            // avg transactions per second
    blockTime,              // time per block
    sinceLastBlock,         // seconds since the last block
  } = data;
  // Do whatever you want here...
});