Run a Full/Light Node

Note: We are in the Alpha Testnet stage, so the API may undergo incompatible changes in the future. If you encounter any issues, please join our Discord to get in touch with the Nubit Team.


Download the Node Repo

Navigate back to the nubit-da directory and clone the nubit-node repository.

Note: When using git clone, you may need to temporarily comment out the UseKeychain fields in your ~/.ssh/config file. Specifically, comment out # IgnoreUnknown UseKeychain and # UseKeychain yes .

git clone git@github.com:RiemaLabs/nubit-node.git
cd nubit-node

Install the Node

First, navigate to the nubit-node root directory and build the project by executing the following commands:

make build
sudo make install
make nkey

Set up your environment by copying and running the following commands:

Note: Set NODE_TYPE to light if you prefer to start a light node.

export PATH=$HOME/go/bin:$PATH
NETWORK=nubit-alphatestnet-1
NODE_TYPE=full
PEERS="/ip4/35.93.193.176/tcp/2121/p2p/12D3KooWKeeKzxEDa2QRSPUvWw3ZJY7fLPEz1E2aoeLAixj9NoXi"
VALIDATOR_IP=https://validator.nubit-alphatestnet-1.com
GENESIS_HASH=AD1DB79213CA0EA005F82FACC395E34BE3CFCC086CD5C25A89FC64F871B3ABAE
export NUBIT_CUSTOM="${NETWORK}:${GENESIS_HASH}:${PEERS}"
nkey=./nkey
echo $GENESIS_HASH
echo $NUBIT_CUSTOM

Note: PEERS, VALIDATOR_IP and GENESIS_HASH may change with updates, so please stay informed.

You will receive the following response.

AD1DB79213CA0EA005F82FACC395E34BE3CFCC086CD5C25A89FC64F871B3ABAE
nubit-alphatestnet-1:AD1DB79213CA0EA005F82FACC395E34BE3CFCC086CD5C25A89FC64F871B3ABAE:/ip4/35.93.193.176/tcp/2121/p2p/12D3KooWKeeKzxEDa2QRSPUvWw3ZJY7fLPEz1E2aoeLAixj9NoXi

Initialize the Node

To initialize the node, run the following command. This will automatically generate a nubit address along with its MNEMONIC. Please make sure to securely save the MNEMONIC as it will only appear once.

nubit $NODE_TYPE init

Start the Node

Finally, start the node with the command below:

Note: We request user to submit node metrics to our OTEL every hour. No private information would be leaked in this process.

nubit $NODE_TYPE start --p2p.network $NETWORK --core.ip $VALIDATOR_IP --rpc.addr 0.0.0.0 --metrics --metrics.endpoint otel.nubit-alphatestnet-1.com:4318

Last updated