eos-block-stream

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i eos-block-stream

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.31 kB

Total Files

4

Last publish

Collaborators

  • mafintosh