Author

Topic: RFC suggestions wrt JSON bitcoind api (Read 1254 times)

legendary
Activity: 1232
Merit: 1076
December 16, 2010, 01:58:08 PM
#4
bumping back up.
legendary
Activity: 1372
Merit: 1008
1davout
December 16, 2010, 08:48:50 AM
#3
+1 it sounds sensible
legendary
Activity: 1232
Merit: 1076
December 16, 2010, 08:37:12 AM
#2
I don't mind to make a patch if needed- this should be a trivial change. Just deprecate the old functions for the new.

EDIT: ooops mods can you move this to Development? I made an error.
legendary
Activity: 1232
Merit: 1076
December 16, 2010, 08:34:33 AM
#1
Hey,

getaccountaddress -> getaddress [account]
getnewaddress -> newaddress
sendtoaddress -> send

I think that the get prefix should only be used for getting existing information. Things like making a new address are an action.

These changes will make the API more logical and easier to use. Especially for someone like me who uses bitcoind over SSH and on my local machine also.

sendtoaddress <- the to address part is redundant. Where else would you send it to? (i know IP's are possible but aren't they not recommended/being fazed out?)

getnewaddress <- You have to make a new address before returning it. Therefore you're not 'getting' something that already exists but performing an action.

getaddress should have account be optional. Have the ability to just return an address from the default account "".
Jump to: