# custom-eth-node-healthcheck

> Simple http server to monitor if Geth/Parity is in sync with the blockchain

Latest version **1.0.0** (published 2020-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install custom-eth-node-healthcheck
pnpm add custom-eth-node-healthcheck
yarn add custom-eth-node-healthcheck
bun add custom-eth-node-healthcheck
```

Provides the command `eth-node-healthcheck`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-05-13 |
| First published | 2020-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 67 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Satyam Agrawal |
| Maintainers | bakii_agl |

## Links

- npm: https://www.npmjs.com/package/custom-eth-node-healthcheck
- Repository: https://github.com/satyamakgec/eth-node-healthcheck
- Homepage: https://github.com/satyamakgec/eth-node-healthcheck#readme
- Issues: https://github.com/satyamakgec/eth-node-healthcheck/issues
- npm.io page: https://npm.io/package/custom-eth-node-healthcheck

## Dependencies (1)

- [web3](https://npm.io/package/web3.md) ^1.2.7

## Recent versions

- 1.0.0 (latest) — 2020-05-13

## README

# 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_HOST — hostname where your node JSON RPC is running. Default: `localhost`

- NETWORK — network name. Supported networks:
  - homestead
  - rinkeby
  - ropsten
  - kovan
  - goerli

- PORT — port to run this service on

Example for mainnet:
```
RPC_HOST=127.0.0.1 NETWORK=homestead PORT=50336 eth-node-healthcheck
```

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

## License

MIT

---
_Source: https://npm.io/package/custom-eth-node-healthcheck · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
