docker.grassecon.net/kitabu/ethstats-client:1.0.0
Go to file
2022-04-17 11:01:30 +03:00
bin updated eth.sh 2015-06-24 03:32:37 +03:00
lib update: web3 conn fixes and new docker image 2022-04-17 11:01:30 +03:00
.dockerignore update: web3 conn fixes and new docker image 2022-04-17 11:01:30 +03:00
.env update: web3 conn fixes and new docker image 2022-04-17 11:01:30 +03:00
.gitignore ignore app.json and use app.json.example for repo 2015-06-23 19:27:50 +08:00
.travis.yml updated to ethstats.net 2016-02-02 07:21:23 +02:00
app.js decreased shutdown wait time 2015-06-09 06:33:38 +03:00
app.json updated to ethstats.net 2016-02-02 07:21:23 +02:00
app.json.example updated to ethstats.net 2016-02-02 07:21:23 +02:00
Dockerfile update: web3 conn fixes and new docker image 2022-04-17 11:01:30 +03:00
LICENSE init commit 2015-02-12 00:21:10 +02:00
package-lock.json update: web3 conn fixes and new docker image 2022-04-17 11:01:30 +03:00
package.json updated web3 and fixed sync issue 2016-04-07 19:50:57 +03:00
processes-ec2.json updated to ethstats.net 2016-02-02 07:21:23 +02:00
README.md Update README.md 2020-09-28 19:37:37 +02:00

Ethereum Network Intelligence API

This is the backend service which runs along with ethereum nodes and tracks the network status, fetches information through JSON-RPC and connects through WebSockets to an ethstats-server to feed information.

Available dashboards

Prerequisite

  • client: geth, besu, nethermind, or openethereum
  • reporting: node js, npm, and pm2

Installation

Clone the repository, install node dependencies, and run the pm2 daemon.

git clone https://github.com/goerli/ethstats-client.git
cd ethstats-client/
npm install
sudo npm install -g pm2

Configuration

Configure the app modifying app.json.

[
  {
    "name"              : "besu-goerli",
    "script"            : "app.js",
    "log_date_format"   : "YYYY-MM-DD HH:mm Z",
    "merge_logs"        : false,
    "watch"             : false,
    "max_restarts"      : 10,
    "exec_interpreter"  : "node",
    "exec_mode"         : "fork_mode",
    "env":
    {
      "NODE_ENV"        : "production",
      "RPC_HOST"        : "localhost",
      "RPC_PORT"        : "8545",
      "LISTENING_PORT"  : "30303",
      "INSTANCE_NAME"   : "My Besu Goerli Node 1337",
      "CONTACT_DETAILS" : "goerli@example.com",
      "WS_SERVER"       : "ws://stats.goerli.net:3000",
      "WS_SECRET"       : "XXXXXXXXXX",
      "VERBOSITY"       : 2
    }
  }
]

Ask in Gitter for the secret: https://gitter.im/goerli/testnet

Available Websockets:

  • ws://ethstats.net:3000
  • ws://stats.goerli.net:3000
  • ws://kotti.goerli.net:3000
  • ws://mordor.dash.fault.dev:3000
  • ws://classic.dash.fault.dev:3000

The secrets for Mordor, Kotti, Goerli, and Classic are the same. The Ethereum mainnet secret is different.

Run

Run it using pm2:

pm2 start app.json