Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jon_smark on August 21, 2012, 03:14:55 PM



Title: Questions concerning the official client API
Post by: jon_smark on August 21, 2012, 03:14:55 PM
I have two questions concerning the official Bitcoin client API (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list):

First, getreceivedbyaccount is listed as taking two optional parameters: account and minconf.  However, the source in bitcoinrpc.cpp implies that the account parameter is actually mandatory.  Oversight in the wiki or error in the code?

Second, what exactly is the difference in semantics between the minconf optional parameter that several calls accept and the target-confirmations optional parameter accepted by listsinceblock?  I understand minconf well enough, but doesn't target-confirmations mean exactly the same thing?

Thank you guys!


Title: Re: Questions concerning the official client API
Post by: someguy123 on August 24, 2012, 09:42:20 AM
With getrecievedbyaccount, you're obviously going to specify an account for it to list from. So I'd say that the wiki is incorrect.
EDIT: "If [account] not provided return will include all transactions to all accounts", supposedly the wiki claims it returns all transactions to all accounts if it's not supplied.
I've never had the need to use listsinceblock, so I'm not familiar with that.