Author

Topic: How to rename or delete an account via the RPC interface? (Read 1920 times)

newbie
Activity: 59
Merit: 0
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?
hero member
Activity: 737
Merit: 500
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.
legendary
Activity: 1652
Merit: 2311
Chief Scientist
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.

hero member
Activity: 737
Merit: 500
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.
Jump to: