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 = 8545path = "/" [database]protocol = "mongodb:"hostname = "127.0.0.1"port = 27012db = "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