Bitcoin Forum
July 09, 2024, 12:48:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Please explain getreceivedbyaddress  (Read 562 times)
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
July 02, 2015, 10: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!
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4681



View Profile
July 02, 2015, 11: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).
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
July 02, 2015, 11:18:10 AM
 #3

Oh, so I am using blockexplorer.com which does not work. Thanks!

Is there any alternative with the same syntax?
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
July 02, 2015, 12:23:14 PM
 #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.

bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
July 02, 2015, 12:46:37 PM
 #5

Ah, thank you very much!
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!