🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

eos-block-stream

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eos-block-stream

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 18 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts