I have a new problem.
I had to reconnect the internet to the offline node to isntall some packages I needed. Before that I ensure that all traces of my private key were remove, such as clipboard contents, terminal output and commands history, files containing the address info were removed using special too shred, etc.
After installing what I needed I completelly disconnect the node again from the internet and created the wallet again, encrypted it, added the address and the private key but when I try to get the balance of the wallet, it says 0.0 which cannot be true because the address I added is not empty!
So, am I missing something? Can anyone help me?
I will look at your former message later but from what you just said it seems that you are trying to check your balance in your offline node? The idea is that you keep synced the online node and check your funds there. You aren't supposed to ever connect ever again to the internet, like ever, on your airgapped computer. To install packages or key updates use a cd rom to guarantee the data cannot be modified.
If a wallet says 0.0 then the only possibilities are:
1) Your node isn't synched
2) You don't own the private key
3) You are looking at the wrong address
4) The funds moved
Well, there are many more reasons that just those ones. Namely the one that was preventing me to check balances!
When I tried to check my balances, I used simply:
bitcoin-cli getbalance
However, this command, by default doesn't show balances involving watchonly addresses, which was the case!
By issuing the command like:
bitcoin-cli getbalance "*" true true
balance comes out correctly.