Bitcoin Forum
September 26, 2016, 10:27:52 AM *
News: Due to DDoS attacks, there may be periodic downtime.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: JSONRPC API suggestions  (Read 1095 times)
mtgox
Full Member
***
Offline Offline

Activity: 185


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!

1474885672
Hero Member
*
Offline Offline

Posts: 1474885672

View Profile Personal Message (Offline)

Ignore
1474885672
Reply with quote  #2

1474885672
Report to moderator
1474885672
Hero Member
*
Offline Offline

Posts: 1474885672

View Profile Personal Message (Offline)

Ignore
1474885672
Reply with quote  #2

1474885672
Report to moderator
1474885672
Hero Member
*
Offline Offline

Posts: 1474885672

View Profile Personal Message (Offline)

Ignore
1474885672
Reply with quote  #2

1474885672
Report to moderator
There are several different types of Bitcoin clients. EWallets are like banks -- a central organization has complete control over your money. You shouldn't put much money in EWallets.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1474885672
Hero Member
*
Offline Offline

Posts: 1474885672

View Profile Personal Message (Offline)

Ignore
1474885672
Reply with quote  #2

1474885672
Report to moderator
1474885672
Hero Member
*
Offline Offline

Posts: 1474885672

View Profile Personal Message (Offline)

Ignore
1474885672
Reply with quote  #2

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

Activity: 210


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
Full Member
***
Offline Offline

Activity: 185


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



View Profile
July 17, 2010, 07:29:04 AM
 #4

svn revision 99+ rpc.cpp line 338
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!