An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# VET fork ETCExplorer

Build status: [![Build Status](https://travis-ci.org/VISCHub/vet-explorer.svg?branch=master)](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