Nubit
Nubit
  • Overview
    • Introduction
  • BitVM
    • BitVM IDE
    • Learn More
  • Modular Indexer
    • Introduction
    • Developer Guide
      • API Documentation
        • Modular Indexer API
        • Light Client API
      • Wallet Integration Guide
    • Learn More
  • External resources
    • Github
    • Linktree
    • X (Twitter)
    • Telegram
    • Discord
Powered by GitBook
On this page
  • How shall I get my Nubit address?
  • How shall I get my light node PUBKEY
  • How shall I see my mnemonic again?
  • How shall I replace the current address with a previous address?
  1. Nubit DA
  2. Developer Guide
  3. FAQ

API troubleshooting

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

Last updated 5 months ago

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!

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?

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

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

Replace my_nubit_key with the actual name of the key you wish to delete. We recommend and saving it securely before deleting it, so you can restore it later if needed.

Alpha Testnet Campaign
PUBKEY will appear everytime when you start light node
Check your Nubit light node address PUBKEY
exporting your key