rpc-check
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
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.
This tool checks:
-
version
- api
- node
- network
-
accounts
-
net
- peer count
- last block
- syncing
- hashrate
- mining
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