You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

9 years ago
  1. # netmon
  2. blockchain network monitor
  3. #Quick Start
  4. To get started, [install golang](https://golang.org/doc/install) and [set your $GOPATH](https://github.com/tendermint/tendermint/wiki/Setting-GOPATH).
  5. Install `tendermint`, `tmsp`, and the `netmon`:
  6. ```
  7. go get github.com/tendermint/tendermint/cmd/tendermint
  8. go get github.com/tendermint/tmsp/cmd/...
  9. go get github.com/tendermint/netmon
  10. ```
  11. Initialize and start a local tendermint node with
  12. ```
  13. tendermint init
  14. dummy &
  15. tendermint node --fast_sync=false --log_level=debug
  16. ```
  17. In another window, start the netmon with
  18. ```
  19. netmon monitor $GOPATH/src/github.com/tendermint/netmon/local-chain.json
  20. ```
  21. Then visit your browser at http://localhost:46670.
  22. The chain's rpc can be found at http://localhost:46657.
  23. # Notes
  24. The netmon expects a config file with a list of chains/validators to get started. A default one for a local chain is provided as local-chain.json. `netmon config` can be used to create a config file for a chain deployed with `mintnet`.
  25. The API is available as GET requests with URI encoded parameters, or as JSONRPC POST requests. The JSONRPC methods are also exposed over websocket.