Use the importmulti command. It lets you import multiple addresses or private keys in the same command. Just craft the command in a text editor and copy and paste it when entering.
Im trying to find this command in the wiki and it doesn't exist it seems:
https://en.bitcoin.it/w/index.php?search=importmulti&title=Special%3ASearch&go=GoI found this but I don't really understand the example provided:
https://github.com/bitcoin/bitcoin/pull/7551Can you please help. For example, let's say that I have these addresses in my Bitcoin Core wallet:
Receiving addresses
1xxxxxxxxxxxxxxxxxxxx1 "Poloniex withdraw"
1xxxxxxxxxxxxxxxxxxxx2 "Donations"
1xxxxxxxxxxxxxxxxxxxx3 "Signature campaign"
Sending addresses
1xxxxxxxxxxxxxxxxxxxx4 "Poloniex deposit"
1xxxxxxxxxxxxxxxxxxxx5 "Bittrex deposit"
I put this wallet on my offline machine. So it's just the regular wallet.dat that I've been using so far which has all the private keys and so on.
Now on my hot machine which has a Bitcoin Core node running, I create an empty wallet.
In this wallet, I need all of my addresses as watch only. Im not sure if I should need to add the sending addresses too, but I think I should, if for example I want to deposit on Poloniex and I want to use 1xxxxxxxxxxxxxxxxxxxx4 one I think I will need it.
So please, how would the importmulti command look if I wanted to add these 5 addresses with their respective labels and to be sorted properly in "Receiving addresses" window and "Sending addresses" but everything watchonly to guarantee no private keys are saved? I just want a "read only" 1:1 copy of my wallet.dat to keep track of balances and keep my sending addresses list too in case I need to sign a transaction there.
Note that I have never done this before. Im scared to screw this up and somehow save my private addresses on my online machine. Also I don't know how to sign transactions offline and put them back into the online node to make the actual transaction. This was always rather confusing to me but it's time to learn this stuff for once. I can't no longer sleep well if I don't learn this.