blockchain-monitor
0.2.0 • Public • Published
npm install --save blockchain-monitor
const blockchain = require('blockchain-account-monitor');
const monitor = new blockchain.AccountMonitor({
blockchainClient: new BlockchainClient({
host: "54.81.151.76",
port: 443,
user: "someRpcUser",
pass: "sup3rstr0ngRpCP@ssw0rd",
confirmations: 3,
type: 'dogecoin'
}),
onBlock: function(block, next) {
console.log('FOUND '+block.length+ ' transactions');
console.log('block', block);
next();
},
timeout: 1000
});
monitor.lastBlockHash = '23e1b5d9c4258352e6d34728816cde2d46968072cf8d8545184b832149bdb94b';
monitor.start();
Package Sidebar
Install
Weekly Downloads