Bitcoin Forum
May 09, 2024, 05:54:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: JSONRPC API suggestions  (Read 8168 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!

The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715277263
Hero Member
*
Offline Offline

Posts: 1715277263

View Profile Personal Message (Offline)

Ignore
1715277263
Reply with quote  #2

1715277263
Report to moderator
lachesis
Full Member
***
Offline Offline

Activity: 210
Merit: 104


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: 507



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!