Bitcoin Forum
May 12, 2024, 08:11:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Remove a watch only address from Bitcoin Core  (Read 1540 times)
achow101 (OP)
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


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.

1715544718
Hero Member
*
Offline Offline

Posts: 1715544718

View Profile Personal Message (Offline)

Ignore
1715544718
Reply with quote  #2

1715544718
Report to moderator
1715544718
Hero Member
*
Offline Offline

Posts: 1715544718

View Profile Personal Message (Offline)

Ignore
1715544718
Reply with quote  #2

1715544718
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715544718
Hero Member
*
Offline Offline

Posts: 1715544718

View Profile Personal Message (Offline)

Ignore
1715544718
Reply with quote  #2

1715544718
Report to moderator
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1009


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 (OP)
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


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: 4032
Merit: 1301


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 (OP)
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


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: 4032
Merit: 1301


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!