Bitcoin Forum
November 09, 2024, 02:46:04 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: JSONRPC API suggestions  (Read 8196 times)
mtgox (OP)
Full Member
***
Offline Offline

Activity: 185
Merit: 102


View Profile WWW
July 17, 2010, 01:12:38 AM
 #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!

lachesis
Full Member
***
Offline Offline

Activity: 210
Merit: 105


View Profile
July 17, 2010, 02:09:17 AM
 #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.

Bitcoin Calculator | Scallion | GPG Key | WoT Rating | 1QGacAtYA7E8V3BAiM7sgvLg7PZHk5WnYc
mtgox (OP)
Full Member
***
Offline Offline

Activity: 185
Merit: 102


View Profile WWW
July 17, 2010, 03:23:23 AM
 #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?

mizerydearia
Hero Member
*****
Offline Offline

Activity: 574
Merit: 513



View Profile
July 17, 2010, 07:29:04 AM
Last edit: July 17, 2010, 07:52:46 AM by mizerydearia
 #4

svn revision 99+ rpc.cpp line 338
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!