- Live Version: etzscan.com
- Follow the project progress at: ETZ Block Explorer Development
- Make sure you already have installed node,if not,please refered this
git clone git@github.com:etherzero-org/explorer.git
cd explorer
npm i
- MacOS:
brew install mongodb - Centos:
yum install -y mongodb - Ubuntu:
sudo apt-get install -y mongodb-org
- This will fetch and parse the entire blockchain.
- Configuration file:
/tools/grabber.js - modify the var "config" (near the file end) like follow basic settings:
var config = {
"rpc": 'http://localhost:9646',
"blocks": [ {"start": 0, "end": "latest"}],
"quiet": true,
"terminateAtExistingDB": false,
"listenOnly": false,//false:graber interval. true:grabe by listen new block.
"out": "."
};
- rpc etherzero rpc which your browser will grab data from
- blocks is a list of blocks to grab. It can be specified as a list of block numbers or an interval of block numbers. When specified as an interval, it will start at the
endblock and keep recording decreasing block numbers. - terminateAtExistingDB will terminate the block grabber once it gets to a block it has already stored in the DB.
- quiet prints out the log of what it is doing. currently not use
- listenOnly,When true, the grabber will create a filter to receive the latest blocks from geth as they arrive. It will not continue to populate older block numbers.
- When
listenOnlyis set totrue, theblocksoption is ignored. Note 2:terminateAtExistingDBandlistenOnlyare mutually exclusive. Do not useterminateAtExistingDBwhen inlistenOnlymode.
nohup node ./tools/grabber.js >> ./grabber.log 2>&1 &