Skip to content

Useful commands


To verify node operation

Terminal window
$HOME/nubit-node/bin/nubit das sampling-stats --node.store $HOME/.nubit-light-nubit-alphatestnet-1

You will receive a response similar to the following to verify that your node is running successfully:

{
"result": {
"head_of_sampled_chain": 143124,
"head_of_catchup": 143124,
"network_head_height": 143124,
"concurrency": 0,
"catch_up_done": true,
"is_running": true
}
}

How shall I get my light node PUBKEY

Everytime when you run curl -sL1 https://nubit.sh | bash to start the light node, the PUBKEY will appear in the very beginning, please save it carefully!

You may also run this command to check your PUBKEY: (Make sure your light node is running!)

Terminal window
$HOME/nubit-node/bin/nkey list --p2p.network nubit-alphatestnet-1 --node.type light
How shall I uninstall nubit-node?

The operation would never be reverted!

To uninstall nubit-node, please run the following command:

Terminal window
rm -rf $HOME/nubit-node
rm -rf $HOME/.nubit-light-nubit-alphatestnet-1

How shall I watch my mnemonic again?

Use the following command to view your mnemonic:

Terminal window
cat $HOME/nubit-node/mnemonic.txt
How shall I replace the current address with a previous address?

First and foremost, please note that the addresses used for running a light node and participating in the Alpha Testnet Campaign can be independent. It is not necessary to unify them.

If you still wish to replace the current address with a previous address or Keplr wallet address, please follow these steps:

Delete the selected key
Terminal window
$HOME/nubit-node/bin/nkey delete my_nubit_key -f --node.type light --p2p.network nubit-alphatestnet-1

Replace my_nubit_key with the actual name of the key you wish to delete.

We recommend exporting your key and saving it securely before deleting it, so you can restore it later if needed.

Import the new key
Terminal window
$HOME/nubit-node/bin/nkey add my_nubit_key --recover --keyring-backend test --node.type light --p2p.network nubit-alphatestnet-1
List your keys
Terminal window
$HOME/nubit-node/bin/nkey list --p2p.network nubit-alphatestnet-1 --node.type light

List the current keys. Note that when running a light node, only the first key will be used.