Bitcoin Forum
December 14, 2017, 03:47:01 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Remove a watch only address from Bitcoin Core  (Read 1363 times)
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1246


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


View Profile WWW
January 20, 2016, 09:12:20 PM
 #1

Anyone know how to remove a watch only address from Bitcoin Core? I have a watch only address in my Bitcoin Core wallet that I don't want there but I can't figure out how to delete it. There is no RPC command for it that I could find and pywallet doesn't seem to be able to remove it.

1513223221
Hero Member
*
Offline Offline

Posts: 1513223221

View Profile Personal Message (Offline)

Ignore
1513223221
Reply with quote  #2

1513223221
Report to moderator
1513223221
Hero Member
*
Offline Offline

Posts: 1513223221

View Profile Personal Message (Offline)

Ignore
1513223221
Reply with quote  #2

1513223221
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513223221
Hero Member
*
Offline Offline

Posts: 1513223221

View Profile Personal Message (Offline)

Ignore
1513223221
Reply with quote  #2

1513223221
Report to moderator
1513223221
Hero Member
*
Offline Offline

Posts: 1513223221

View Profile Personal Message (Offline)

Ignore
1513223221
Reply with quote  #2

1513223221
Report to moderator
unamis76
Legendary
*
Offline Offline

Activity: 1386


View Profile
January 20, 2016, 10:14:08 PM
 #2

This didn't help?

Quote
However, you can use the rpc call setaccount to change the account associated with the address. The first argument to setaccount should the the address you're changing; the second shound be the account you're moving it to. (If you want to move it to the default account, put "" as the second argument.)

Note that this does not change the balance of the account; balances are tracked internally. If you want to keep this consistent, run getreceivedbyaddress, then move that balance to the new account.

You can also use PyWallet to delete addresses permanently. Use the --multidelete option, and pass it a path to a file. That file should contain key as the first line, followed by each address you want to delete, each on a new line.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1246


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


View Profile WWW
January 20, 2016, 10:41:53 PM
 #3

This didn't help?

Quote
However, you can use the rpc call setaccount to change the account associated with the address. The first argument to setaccount should the the address you're changing; the second shound be the account you're moving it to. (If you want to move it to the default account, put "" as the second argument.)

Note that this does not change the balance of the account; balances are tracked internally. If you want to keep this consistent, run getreceivedbyaddress, then move that balance to the new account.

You can also use PyWallet to delete addresses permanently. Use the --multidelete option, and pass it a path to a file. That file should contain key as the first line, followed by each address you want to delete, each on a new line.
Nope. It doesn't delete the address and it didn't remove the address from my GUI. Besides, accounts are deprecated in Bitcoin Core.

I don't particularly care about this wallet so it doesn't matter that much to me if I delete the wallet and start over since I only use it for testing and armory. Although there are no coins in that wallet, I just want to avoid deleting it if possible.

cr1776
Legendary
*
Offline Offline

Activity: 1736


View Profile
January 21, 2016, 01:20:28 AM
 #4

You may have to use something like pywallet to edit it.  I don't believe you can do it in Core.

An alternative, of course, would be to export all the keys, delete that one and import, but pywallet seems cleaner.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1246


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


View Profile WWW
January 21, 2016, 01:27:53 AM
 #5

You may have to use something like pywallet to edit it.  I don't believe you can do it in Core.

An alternative, of course, would be to export all the keys, delete that one and import, but pywallet seems cleaner.
I don't think pywallet works here. Watch only was only added in 0.10.0 which was released in Early 2015. Pywallet hasn't been updated since Sep 2014. Also, I tried it and it didn't work.

cr1776
Legendary
*
Offline Offline

Activity: 1736


View Profile
January 21, 2016, 01:34:18 AM
 #6

You may have to use something like pywallet to edit it.  I don't believe you can do it in Core.

An alternative, of course, would be to export all the keys, delete that one and import, but pywallet seems cleaner.
I don't think pywallet works here. Watch only was only added in 0.10.0 which was released in Early 2015. Pywallet hasn't been updated since Sep 2014. Also, I tried it and it didn't work.

Hmmmm.  I'm not sure then, I would've thought it would work okay. 

You could always export them all then, clear it, and just reimport the ones you want. :-)
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!