Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 330 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 330 Bytes

tz-watch

Monitor onBlock events from the Tezos node

yarn add tz-watch

const { Watcher } = require('tz-watch')

const watcher = new Watcher("https://mainnet-tezos.giganode.io")

watcher.start()

watcher.on('block', () => {
  console.log(`New Block: ${new Date()}`)
})

Donations kindly accepted at noforks.tez