Bitcoin Forum
December 13, 2024, 05:27:37 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to rename or delete an account via the RPC interface?  (Read 1918 times)
twmz (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
June 08, 2011, 12:23:54 AM
 #1

Is there a way to delete an account (reassigning any addresses it has to the default "" account) or to rename an account?

Example sequence of events that I tried but that failed:

1. I created an address and assign it to a new account named "myacount" (with a typo in it).
2. I use the new address in transactions.
3. I use setaccount to reassign the address to a be in "myaccount" (with the typo fixed)

End result: myaccount exists and has the address from #2 in it.  myacount also still exists and has had a new address assigned to it by step #3.

Is there no way to make "myacount" go away or do I have to let it clutter up the account list forever?

I swear I have done something this before and had it work, but now I can't seem to make an account go away.  I know in the past I had created an address and assigned it to an account, but then decided I didn't want the account and reassigned the address to the "" account, and the unwanted account disappeared.  I don't know what I did differently in the past, but that doesn't work anymore.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2311


Chief Scientist


View Profile WWW
June 08, 2011, 12:29:41 AM
 #2

Is there a way to delete an account (reassigning any addresses it has to the default "" account) or to rename an account?
No, there's no way.


How often do you get the chance to work on a potentially world-changing project?
twmz (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
June 08, 2011, 12:52:13 AM
 #3

Is there something conceptually problematic with renaming an account? 

If it is not a bad idea in the first place, I'll look at the code and see if I can figure out how to add it and then submit a pull request.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
elendir
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
April 20, 2013, 09:14:39 PM
 #4

Sorry for reviving this almost 2 years old thread, but I've just run into this. Why can't we rename accounts through JSON-RPC if at the same time we can do it in GUI?
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!