Bitcoin Forum
April 26, 2024, 01:24:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: RFC suggestions wrt JSON bitcoind api  (Read 1226 times)
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


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

Posts: 1714094660

View Profile Personal Message (Offline)

Ignore
1714094660
Reply with quote  #2

1714094660
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714094660
Hero Member
*
Offline Offline

Posts: 1714094660

View Profile Personal Message (Offline)

Ignore
1714094660
Reply with quote  #2

1714094660
Report to moderator
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


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
Merit: 1007


1davout


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

+1 it sounds sensible

genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


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

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