Author

Topic: Please explain getreceivedbyaddress (Read 575 times)

sr. member
Activity: 277
Merit: 254
July 02, 2015, 07:46:37 AM
#5
Ah, thank you very much!
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
July 02, 2015, 07:23:14 AM
#4
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.
sr. member
Activity: 277
Merit: 254
July 02, 2015, 06:18:10 AM
#3
Oh, so I am using blockexplorer.com which does not work. Thanks!

Is there any alternative with the same syntax?
legendary
Activity: 3472
Merit: 4801
July 02, 2015, 06:14:03 AM
#2
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).
sr. member
Activity: 277
Merit: 254
July 02, 2015, 05:25:05 AM
#1
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!
Jump to: