block-to-transaction-stream
v0.2.0
Published
Return a transaction stream from a block stream
Downloads
4
Readme
Returns a stream of transactions from a stream of blocks
Installation
npm install block-to-transaction-stream
Example
var bitcoin = require('bitcoin')
var bs = require('bitcoind-block-stream')
var ts = require('./index')
var spy = require('through2-spy')
var client = new bitcoin.Client(require('./bitcoin.json'))
bs(client, { max: 10 }).pipe(ts()).pipe(spy(console.log.bind(console)))