https://github.com/vischub/vet-explorer
VET Explorer fork Ethereum Classic
https://github.com/vischub/vet-explorer
blockchain cryptocurrency ethereum testnet vietnamese web3js
Last synced: 7 months ago
JSON representation
VET Explorer fork Ethereum Classic
- Host: GitHub
- URL: https://github.com/vischub/vet-explorer
- Owner: VISCHub
- License: other
- Created: 2018-01-27T06:32:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-27T06:49:35.000Z (over 7 years ago)
- Last Synced: 2025-01-28T19:48:48.938Z (9 months ago)
- Topics: blockchain, cryptocurrency, ethereum, testnet, vietnamese, web3js
- Language: JavaScript
- Homepage: https://explorer.visc.network
- Size: 6.54 MB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# VET fork ETCExplorer
Build status: [](https://travis-ci.org/VISCHub/vet-explorer)
Live Version: [VET Explorer](https://explorer.visc.network)
## Local installation
Install dependencies:
`yarn 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.
Configuration file: `/tools/config.json`
Basic settings:
```json
{
"gethPort": 8545,
"blocks": [ {"start": 2000000, "end": "latest"}],
"quiet": false,
"terminateAtExistingDB": true,
"listenOnly": false
}
``````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 ```end``` block 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.
```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.
Note: When ```listenOnly``` is set to ```true```, the ```blocks``` option is ignored.
Note 2: ```terminateAtExistingDB``` and ```listenOnly``` are mutually exclusive. Do not use ```terminateAtExistingDB``` when in ```listenOnly``` mode.
### Run:
`node ./tools/grabber.js`
Leave this running in the background to continuously fetch new blocks.
### Stats
Tools for updating network stats are under development, but can be found in:
`./tools/stats.js`
# Run With Docker
ENV
- NODE_URL: protocol + domain + port( ex: https://explorer.coin.com/8545)
- MONGO_URI: domain