Giter VIP home page Giter VIP logo

bkc-node-healthcheck's Introduction

eth-node-healthcheck

Little http node.js server to run along the ethereum node. Node needs to have JSONRPC enabled. Returns 503 Service Unavailable if the last block number on the local node is off by 3 or more blocks from the last block number from Infura node. Otherwise returns 200 OK.

Supported networks:

Installation

npm install -g eth-node-healthcheck

Run

Configuration parameters (set as ENV variables):

  • RPC_URL — hostname where your node JSON RPC is running. Default: http://localhost:8545

  • NETWORK_URLS — network public JSON RPC

  • PORT — port to run this service on

Example for mainnet:

RPC_URL=http://localhost:8545 NETWORK_URLS=http://rpc.bitkubchain.io PORT=50336 bkc-node-healthcheck

Make sure the process is detached from the terminal. Make sure the port is open for incoming connections.

License

MIT

bkc-node-healthcheck's People

Contributors

troggy avatar isman-usoh avatar johannbarbie avatar pinkiebell avatar ikeowz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.