Bitcoin Forum
December 10, 2016, 03:15:22 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: RFC suggestions wrt JSON bitcoind api  (Read 1001 times)
genjix
Legendary
*
expert
Offline Offline

Activity: 1232


View Profile
December 16, 2010, 01:34:33 PM
 #1

Hey,

getaccountaddress <account> -> 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 "".
1481339722
Hero Member
*
Offline Offline

Posts: 1481339722

View Profile Personal Message (Offline)

Ignore
1481339722
Reply with quote  #2

1481339722
Report to moderator
1481339722
Hero Member
*
Offline Offline

Posts: 1481339722

View Profile Personal Message (Offline)

Ignore
1481339722
Reply with quote  #2

1481339722
Report to moderator
1481339722
Hero Member
*
Offline Offline

Posts: 1481339722

View Profile Personal Message (Offline)

Ignore
1481339722
Reply with quote  #2

1481339722
Report to moderator
"Apparently, so I am told, there exist "people" who prefer to wipe sitting down. From the front. Initial research indicates it could be up to half the population." -- benjamindees
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
genjix
Legendary
*
expert
Offline Offline

Activity: 1232


View Profile
December 16, 2010, 01:37:12 PM
 #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.
davout
Legendary
*
Offline Offline

Activity: 1358


1davout


View Profile WWW
December 16, 2010, 01:48:50 PM
 #3

+1 it sounds sensible

genjix
Legendary
*
expert
Offline Offline

Activity: 1232


View Profile
December 16, 2010, 06:58:08 PM
 #4

bumping back up.
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!