Title: Please explain getreceivedbyaddress Post by: bitdude on July 02, 2015, 10:25:05 AM Hi,
I am a bit confused here, based on this https://blockexplorer.com/q/getreceivedbyaddress I have always thought that this function will give me the final balance on a BTC address. For example, if I do https://blockexplorer.com/q/getreceivedbyaddress/1odt13c55k1FH75Th9joz5Z2kiUk3S8TW/100 I would expect to receive a total balance on address 1odt13c55k1FH75Th9joz5Z2kiUk3S8TW that is confirmed by least 100 confirmations (i.e. newer transactions with less than 100 confirmations would not be counted). But what I receive is 0.15363724 and I do not understand this. If I look at https://blockchain.info/address/1odt13c55k1FH75Th9joz5Z2kiUk3S8TW I can clearly see that the last transaction amount is -0.15363724, but I would expect either 0.09836446 or 0.2520017. Actually, based on the description in the first link, where it is mentioned that "Sends are not taken into account.", I would expect 0.2520017 to be returned from that call. What am I missing? And, probably more importantly, is there a call that returns what I am looking for (i.e. 0.2520017) ? Thank you! Title: Re: Please explain getreceivedbyaddress Post by: DannyHamilton on July 02, 2015, 11:14:03 AM Perhaps the number you are receiving is old.
Looking at this page: http://blockexplorer.com/ It appears that the last block that blockexplorer.com processed was block #358999. Meanwhile, the current (as of the moment I'm writing this post) block at the tip of the blockchain is block #363471 This means that when you run: https://blockexplorer.com/q/getreceivedbyaddress/1odt13c55k1FH75Th9joz5Z2kiUk3S8TW/100 You are receiving the total value of all transactions received at that address as of 4,572 blocks ago (that's approximately a month ago). Title: Re: Please explain getreceivedbyaddress Post by: bitdude on July 02, 2015, 11:18:10 AM Oh, so I am using blockexplorer.com which does not work. Thanks!
Is there any alternative with the same syntax? Title: Re: Please explain getreceivedbyaddress Post by: Muhammed Zakir on July 02, 2015, 12:23:14 PM Oh, so I am using blockexplorer.com which does not work. Thanks! Is there any alternative with the same syntax? https://blockchain.info/q/getreceivedbyaddress/1odt13c55k1FH75Th9joz5Z2kiUk3S8TW/ - values represented in satoshi. Title: Re: Please explain getreceivedbyaddress Post by: bitdude on July 02, 2015, 12:46:37 PM Ah, thank you very much!
|