Author

Topic: How to remove watch-only address from wallet (Read 258 times)

legendary
Activity: 2254
Merit: 2253
From Zero to 2 times Self-Made Legendary
Hi there

Using Bitcoin Core v0.18.0 and Qt v5.9.7, I had no problem using importaddress to view an address under the Watch-only balance, but I can't find a command to remove it. How can I remove it? (without using another program or different wallet file.)

Thanks

A while ago, I removed some address (watch-only addresses) from my QT wallet that appears when I ran a personal server for electrum wallet. It might not be what you expected, because I did use a new wallet.dat file after removed (renamed) the old wallet.dat (But maybe you want to know it)


- Copy and save your entire private key from the addresses that contain UTXO or an address's private key that you want to keep (use dumpprivkey "address" via console). You might need to enable coin control features to see the UTXOs list.
- Or you can move the all of UTXO to the one specific address, so later you merely need to import one private key only.
- Don't forget to back up the wallet.dat (it may also help you to retrieve the old wallet data if something goes wrong)
- Then shutdown the bitcoin-qt and rename/delete the walllet.dat from Bitcoin data directory
- Start the bitcoin-qt and import the private keys that you saved before (use importprivkey "privkey" "label" false via console)
- For the latest private key use importprivkey "privkey" "label" (without "false" parameter, so it will rescanning the whole address (transactions))
HCP
legendary
Activity: 2086
Merit: 4363
A possible solution (assuming it is an HD wallet) would be to revert to a backup of the wallet.dat before you imported the address...

 
member
Activity: 131
Merit: 29
Is there a way to ignore transactions from a particular Watch-only address?
staff
Activity: 3458
Merit: 6793
Just writing some code
You cannot delete things from a wallet file. Deletion is not a supported operation.
member
Activity: 131
Merit: 29
Hi there

Using Bitcoin Core v0.18.0 and Qt v5.9.7, I had no problem using importaddress to view an address under the Watch-only balance, but I can't find a command to remove it. How can I remove it? (without using another program or different wallet file.)

Thanks
Jump to: