bc2

0.5.3 • Public • Published

BlockScanner

Blockchain Data Collector

Install

sudo npm install bc2 -g
sudo npm install bc2 -g --unsafe-perm

Setup Config

vi ~/bc2.config.toml
# BlockScanner Default Config
 
title = "BlockScanner"
 
[base]
folder = "/path/to/your/chaindata"
 
[blockchain]
protocol = "http:"
hostname = "127.0.0.1"
port = 8545
path = "/"
 
[database]
protocol = "mongodb:"
hostname = "127.0.0.1"
port = 27012
db = "ETH"
prefix = "BS_"
user = "BC2"
password = "db password"

Run

  • start from block 0
bc2 -c ~/bc2.config.toml
  • scan N blocks from block M
bc2 -c ~/bc2.config.toml -f M -o N
  • list all process
bc2 -l
  • kill process X
bc2 -k X
  • kill all process
bc2 -k 0

/bc2/

    Package Sidebar

    Install

    npm i bc2

    Weekly Downloads

    37

    Version

    0.5.3

    License

    MIT

    Unpacked Size

    34.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • luphia