Author

Topic: JSONRPC API suggestions (Read 8200 times)

hero member
Activity: 574
Merit: 513
July 17, 2010, 02:29:04 AM
#4
svn revision 99+ rpc.cpp line 338
full member
Activity: 185
Merit: 102
July 16, 2010, 10:23:23 PM
#3
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?
full member
Activity: 210
Merit: 105
July 16, 2010, 09:09:17 PM
#2
There _is_ a getreceivedbyaddress call! I use it Cheesy.

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.
full member
Activity: 185
Merit: 102
July 16, 2010, 08:12:38 PM
#1
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!
Jump to: