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:
- View the network stats at http://monitor.ryu.games.
- Follow Twitter updates at @OntMonitor.
- 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...
});