node package manager

chainstate-utxo-stream

Returns a stream of blocks from given start height to given max height.

Installation

npm install chainstate-utxo-stream

Example

var level = require('level')
var us = require('chainstate-utxo-stream')
 
var db = level('chainstate', { keyEncoding: 'hex', valueEncoding: 'hex' })
var rs = db.createReadStream({ gte: '\x63', lt: '\x64' })
 
rs.pipe(us())
  .pipe( // do what you want here )