chainstate-utxo-stream
v2.1.1
Published
Stream unserialized utxos from bitcoin core's chainstate leveldb
Downloads
7
Readme
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 )