Text based user interface for Harmony node. Below information is currently displayed on Harmony-TUI
- Section - Harmony Blockchain
- Connected peers
- Leader's one address
- Current epoch number
- Recent timestamps of various stages
- Section - Harmony Node
- Harmony node binary version
- ShardId of local node
- Balance of user's one account
- Section - Current Block
- Current block number
- Size of current block in bytes
- Hash of current block
- StateRoot
- BlockEpoch
- Number of signers who signed last block
- Section - System Stats
- CPU usage in percentage
- Memory/RAM usage of system
- Used disk space
- Section - Validator Logs
- This section shows validator log file
- harmony node running on localhost:9000
- shared libraries required for running harmony node
- Harmony TUI binary should be in same directory as harmony node binary
- Clone repository -
git clone git@github.com:harmony-one/harmony-tui.git
cd harmony-tui
- Invoke
make
to build harmony-tui binary for local platform ormake build-linux
for linux - binary will get generated in
./bin
directory - Copy harmony-tui binary from ./bin to the same directory as harmony node binary
- Invoke binary -
path_to_binary/harmony-tui --address=YOUR_ONE_ADDRESS
- Download binary directly for here(TODO: add hyperlink).
- Place downloaded binary in same directory as harmony node binary
- Invoke binary -
path_to_binary/harmony-tui --address=YOUR_ONE_ADDRESS
- Invoke binary -
path_to_binary/harmony-tui --address=YOUR_ONE_ADDRESS
- Help information -
path_to_binary/harmony-tui--help
- Command line arguments supported by harmony-tui binary
-address string
address of your one account (default "Not Provided")
-config string
path to configuration file
-earningInterval string
Earning interval of TUI in seconds
-env string
environment of system binary is running on option 1- "local" option 2- "ec2"
-hmyPath string
path to harmony binary (default is current dir)
-hmyUrl string
harmony instance url
-logPath string
path to harmony log folder "latest"
-refreshInterval string
Refresh interval of TUI in seconds
-silent
run TUI/telegram bot in background
-telegramToken string
telegram token of your telegram bot
-version
version of the binary
Examples
- Run binary -
path_to_binary/harmony-tui --address=YOUR_ONE_ADDRESS --env=local
- Check version -
path_to_binary/harmony-tui --version
- Create telegram bot
- Pass telegram token with TUI
./harmonu-tui --telegramToken=<Your_Token>
- Optional: Run Telegram bot in background
./harmonu-tui --telegramToken=<Your_Token> --silent &
- Search name of your telgram bot and type help to get list of supported commands
TUI dumps all the config into ./config-tui.json
.
Commandline parms like telegramToken/OneAddress are needed to be passed only once.
There after they are recored in config file.
The file can be modified to change the config.
Commandline param always have higher precendence than config file.