Title: JSONRPC API suggestions Post by: mtgox on July 17, 2010, 01:12:38 AM It would be nice to have a:
getreceivedbyaddress What is the point of having these two different calls? listreceivedbylabel listreceivedbyaddress Can't you just get the label info from listreceivedbyaddress if you want it? And most importantly it would be nice to be able to get all the transactions to an address or label. This would make making a payment gateway much easier! Title: Re: JSONRPC API suggestions Post by: lachesis on July 17, 2010, 02:09:17 AM There _is_ a getreceivedbyaddress call! I use it :D.
Also, (get/list)receivedbylabel is nice for when you want to get the amount received by every address in each label. Let's say I create one-time use addresses for a store all with the same label. If I want to know how much my entire store has received, I don't have to call getreceivedbyaddress a million times; I just call getreceivedbylabel for the label. I use this for my donations system in my signature. Title: Re: JSONRPC API suggestions Post by: mtgox on July 17, 2010, 03:23:23 AM Quote There _is_ a getreceivedbyaddress call! I use it Oh it isn't listed here: http://www.bitcoin.org/wiki/doku.php?id=api Quote Also, (get/list)receivedbylabel is nice for when you want to get the amount received by every address in each label. Let's say I create one-time use addresses for a store all with the same label. If I want to know how much my entire store has received, I don't have to call getreceivedbyaddress a million times; I just call getreceivedbylabel for the label. listreceivedbylabel doesn't take in a label according to the wiki. It is more useful if it does. Does it also return the address in the array? Title: Re: JSONRPC API suggestions Post by: mizerydearia on July 17, 2010, 07:29:04 AM svn revision 99+ rpc.cpp line 338
|