#!/usr/local/bin/node const { Client, BlockchainMode } = require('dsteem'); const client = new Client('https://rpc.buildteam.io'); (async () => { const a = client.blockchain.getOperations({ mode: BlockchainMode.Latest }); const op_container = {} let other_stuff_container = [] while (1) { let {value: operation} = await a.next(); let [name, data, other_stuff] = [...operation.op] if (!op_container.hasOwnProperty(name)){ op_container[name] = data //clearInterval(print) console.clear() console.log(JSON.stringify(op_container, null, 3), '\n\n\n', other_stuff_container) } if (other_stuff){ other_stuff_container.push(other_stuff) } //setPrint() } })(); /** */