Add a node to the network
Register the node
After being voted in as a provider, you'll need to register your nodes to the network. This process officially connects your node to the system. Use the following command to register:
pmc node register \
--cluster system \
--pubkey <node-public-key> \
--host <domain> \
--port 9870 \
--api-url https://<domain>:7740
Replace the placeholders with your node's public key and domain information.
Change the API address
Once your node is registered, update the API URL in the .chromia/config
file to point to your node's address. This
step ensures that your node communicates correctly with the network.
Run the following command to set your node’s API URL:
pmc config \
--local \
--set api.url=<your-node-api-url>
Ensure the address starts with https://
and ends with the correct port number (7740).
At this stage, your node will be fully integrated into the network and will participate in the consensus and communication with other nodes.