Skip to content

Instantly share code, notes, and snippets.

@mempirate
Last active November 22, 2019 08:37
Show Gist options
  • Save mempirate/cf0c02b406035d55002e53159c793c8a to your computer and use it in GitHub Desktop.
Save mempirate/cf0c02b406035d55002e53159c793c8a to your computer and use it in GitHub Desktop.
'use strict'
const Web3 = require('web3')
const BuildTransactionChecker = require('./transactionChecker')
const CreateClient = require('./ethClient')
const web3 = CreateClient(Web3)
const checkBlock = BuildTransactionChecker(web3)
setInterval(() => {
checkBlock()
}, 7000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment