1.0.0 • Published 5 years ago

eos-block-stream v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

eos-block-stream

Small module to read the EOS blocks file out in individual block chunks

npm install eos-block-stream

Usage

const eos = require('eos-block-stream')

const stream = eos('/path/to/eos/folder') // the folder that has a ./blocks child folder

stream.on('data', function () {
  // first data chunks the the genesis block + the version data etc
  // see https://github.com/EOSIO/eos/blob/master/libraries/chain/block_log.cpp for more
  // the following ones are the individual block chain blocks.
})

License

MIT