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

1 Answer 1


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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.