API troubleshooting
Frequently Asked Questions: If you encounter any questions, we kindly ask you to check this section first. Thank you!
How shall I get my Nubit address?
You may run this command: (Make sure your light node is running!)
$HOME/nubit-node/bin/nubit state account-address --node.store $HOME/.nubit-light-nubit-alphatestnet-1
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!)
$HOME/nubit-node/bin/nkey list --p2p.network nubit-alphatestnet-1 --node.type light
Your Nubit light node address PUBKEY will be shown in this area.

How shall I see my mnemonic again?
Please be careful not to share this mnemonic file as it is your private information. Don't share it with anyone else!
Use the following command to view your mnemonic:
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
$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
Make sure the name is my_nubit_key
, otherwise, you will fail!
$HOME/nubit-node/bin/nkey add my_nubit_key --recover --keyring-backend test --node.type light --p2p.network nubit-alphatestnet-1
List your keys
$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.
Last updated