Bitcoin Forum
March 29, 2017, 09:25:17 AM *
News: Latest stable version of Bitcoin Core: 0.14.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: RFC suggestions wrt JSON bitcoind api  (Read 1031 times)
genjix
Legendary
*
expert
Offline Offline

Activity: 1246


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 "".
1490779517
Hero Member
*
Offline Offline

Posts: 1490779517

View Profile Personal Message (Offline)

Ignore
1490779517
Reply with quote  #2

1490779517
Report to moderator
1490779517
Hero Member
*
Offline Offline

Posts: 1490779517

View Profile Personal Message (Offline)

Ignore
1490779517
Reply with quote  #2

1490779517
Report to moderator
1490779517
Hero Member
*
Offline Offline

Posts: 1490779517

View Profile Personal Message (Offline)

Ignore
1490779517
Reply with quote  #2

1490779517
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1490779517
Hero Member
*
Offline Offline

Posts: 1490779517

View Profile Personal Message (Offline)

Ignore
1490779517
Reply with quote  #2

1490779517
Report to moderator
genjix
Legendary
*
expert
Offline Offline

Activity: 1246


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: 1372


1davout


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

+1 it sounds sensible

genjix
Legendary
*
expert
Offline Offline

Activity: 1246


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!