bc2
v0.5.3
Published
Blockchain Data Collector
Downloads
3
Readme
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