https://github.com/ether1project/explorer
ETHO Block Explorer
https://github.com/ether1project/explorer
Last synced: about 1 month ago
JSON representation
ETHO Block Explorer
- Host: GitHub
- URL: https://github.com/ether1project/explorer
- Owner: Ether1Project
- License: other
- Created: 2019-03-27T13:03:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T22:54:45.000Z (almost 7 years ago)
- Last Synced: 2025-03-11T13:41:47.564Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://explorer.ether1.org
- Size: 8.86 MB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ETHOExplorer
## Local installation
Clone the repo
Download [Nodejs and npm](https://docs.npmjs.com/getting-started/installing-node "Nodejs install") if you don't have them
Install dependencies:
`npm install`
Install mongodb:
MacOS: `brew install mongodb`
Ubuntu: `sudo apt-get install -y mongodb-org`
## Populate the DB
This will fetch and parse the entire blockchain.
Setup your configuration file: `cp config.example.json config.json`
Edit `config.json` as you wish
Basic settings:
```json
{
"nodeAddr": "localhost",
"gethPort": 8545,
"startBlock": 0,
"endBlock": "latest",
"quiet": true,
"syncAll": true,
"patch": true,
"patchBlocks": 100,
"settings": {
"symbol": "ETHO",
"name": "Ether-1",
"title": "Ether-1 Block Explorer",
"author": ""
}
}
```
```nodeAddr``` Your node API RPC address.
```gethPort``` Your node API RPC port.
```startBlock``` This is the start block of the blockchain, should always be 0 if you want to sync the whole ETC blockchain.
```endBlock``` This is usually the 'latest'/'newest' block in the blockchain, this value gets updated automatically, and will be used to patch missing blocks if the whole app goes down.
```quiet``` Suppress some messages. (admittedly still not quiet)
```syncAll``` If this is set to true at the start of the app, the sync will start syncing all blocks from lastSync, and if lastSync is 0 it will start from whatever the endBlock or latest block in the blockchain is.
```patch``` If set to true and below value is set, sync will iterated through the # of blocks specified
```patchBlocks``` If `patch` is set to true, the amount of block specified will be check from the latest one.
### Run:
If you run
`npm start app.js`
it will also start sync.js and start syncing the blockchain based on set parameters. NOTE running app.js will always start sync.js keep listening and syncing the latest block.
You can leave sync.js running without app.js and it will sync and grab blocks based on config.json parameters
`node ./tools/sync.js`