How does blockchain.info api works?

1

Calling

https://blockchain.info/multiaddr?cors=true&active=15PFsB56YYXwXSW6byaxHXfgGz2ySWnDzN

I get a json response which I can not figure out if it has some sort of error or that I'm mistaken.

The response show results in transaction 1206412 = 0.01206412BTC added to balance 0BTC should get 1206412 = 0.01206412BTC, however we get balance = 1201206412 = 12.01206412BTC, I think it's error in blockchain.info api or could you explain how the balance is calculated.

blockchain response

Haddar Macdasi

Posted 2014-12-31T09:26:55.350

Reputation: 845

Answers

2

The issue was with how the transactions are sorted. The balance was being calculated with 9c8f1b918e6a6a2 being sorted before 46d529d722d1 (which is incorrect) despite them being ordered correctly in the json. Regardless it should be fixed now.

Kevin

Posted 2014-12-31T09:26:55.350

Reputation: 36

I can see it's now working, and take a look at http://bitref.com/15PFsB56YYXwXSW6byaxHXfgGz2ySWnDzN They use this API, now it is sorted as well at their table

Haddar Macdasi 2015-01-01T19:36:50.033