Bitcoin Forum
November 19, 2024, 09:24:10 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Questions concerning the official client API  (Read 957 times)
jon_smark (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
August 21, 2012, 03:14:55 PM
 #1

I have two questions concerning the official Bitcoin client API:

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!
someguy123
Sr. Member
****
Offline Offline

Activity: 336
Merit: 254


CEO of Privex Inc. (www.privex.io)


View Profile WWW
August 24, 2012, 09:42:20 AM
 #2

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.

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!