API troubleshooting

Frequently Asked Questions: If you encounter any questions, we kindly ask you to check this section first. Thank you!

Note: Thanks to your contributions, cycle I of our TestNet Phase 3 journey has officially wrapped up! Now we're one step closer to onboarding the world to Bitcoin. Stay tuned for the next steps!

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!

PUBKEY will appear everytime when you start light node

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.

Check your Nubit light node address PUBKEY

How shall I see my mnemonic again?

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:

  1. 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.

  1. Import the new key

$HOME/nubit-node/bin/nkey add my_nubit_key --recover --keyring-backend test --node.type light --p2p.network nubit-alphatestnet-1
  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