1.1.3 • Published 9 years ago

tx-walker v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

#Usage

var Walker = require('tx-walker')
var walker = new Walker({
  networkName: 'bitcoin',   // optional, defaults to 'bitcoin'
  batchSize: 20,            // optional, defaults to 20
  throttle: 2000            // optional, defaults to 2000
})

var numBlocks = 0
walker.start(100000) // block height
walker.on('block', function(block) {
  // i want to do bad things to block
});

walker.on('tx', function(tx) {
  // i want to do bad things to tx
});

// emitted after the last 'tx' event of a block, unless the walker is stopped in the middle of the block
walker.on('blockend', function() {
  if (++numBlocks === 10) walker.stop()
})
1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago