rpc-check

RPC Check - Checks for Ethereum JSON RPC Nodes

Usage no npm install needed!

<script type="module">
  import rpcCheck from 'https://cdn.skypack.dev/rpc-check';
</script>

README

rpc-check

npm license GitHub tag Travis GitHub issues

Checks for JSON RPC endpoints of ethereum nodes and displays basic statistics and gives a gist how accessible it is.

➜  rpc-check -h

  Usage: rpc-check [options] <uri>

  RPC Check - Checks for Ethereum JSON RPC Nodes

  Options:

    -h, --help     output usage information
    -v, --version  output the version number
    --block        include the last block
    --verbose      verbose output
    --json         only JSON output

Reason for this tool to exist: There is like 10 mistakes a lot of people make with their RPC nodes and some of them are revealed by this cli tool.

rpc-check

This tool checks:

  • version

    • api
    • node
    • network
  • accounts

  • net

    • peer count
    • last block
    • syncing
    • hashrate
    • mining
  • License

  • Changelog

Usage

rpc-check http://localhost:8545            
version EthereumJS TestRPC/v2.2.7/ethereum-js
network 1475011275094
mining true
accounts 10
gasPrice 1

Only JSON output

rpc-check http://localhost:8545 --json
{
  "version": "EthereumJS TestRPC/v2.2.7/ethereum-js",
  "network": "1475011275094",
  "mining": true,
  "accounts": 10,
  "gasPrice": 1
}

Install

npm install rpc-check -g