This project is moved to https://github.com/CodeChain-io/codechain-dashboard
CodeChain Agent Hub is a server which collects many CodeChain node's information(best block, pending parcels, log, ...). Also, CodeChain Agent Hub serves collected data to CodeChain Dashboard.
You should set up a rust toolchain.
You can install codechain-agent-hub by running cargo install
Ubuntu
sudo apt install postgresql postgresql-contrib
sudo -u postgres psql -f create_user_and_db.sql
generate-schema
Mac (brew)
brew install postgresql
brew services start postgresql
psql postgres -f create_user_and_db.sql
generate-schema
Just run codechain-agent-hub
in your shell.
To safely communicate with the Dashboard, please set the PASSPHRASE
environment variable. The Dashboard program should use the same passphrase.
When you are using the PASSPHRASE
you should use SSL over the connection. If you don't use the SSL, the PASSPHRASE
is open to the internet.
CodeChain Agent Hub will listen 3012 port to communicate with the Dashboard using JSON-RPC.
CodeChain Agent Hub will listen 4012 port to communicate with the Agent using JSON-RPC.
CodeChain Agent Hub will listen 5012 port to serve CodeChain's log file using HTTP.