BitcoinTransactionTool icon indicating copy to clipboard operation
BitcoinTransactionTool copied to clipboard

error getting balances

Open Glenio45 opened this issue 4 years ago • 1 comments

balance error hello I'm receiving errors transactions from this address the balance is wrong

Glenio45 avatar Feb 15 '22 01:02 Glenio45

This is a bug that I never fixed. It affects addresses with too many transactions that the API either don't return or returns the result in chunks and you have to go to next "page" to get the rest.

I won't fix it since I've migrated this project to Denovo but you can look for hasMore in blockcypher JSON response and if == true create a loop to fetch more transactions using the &before={lastHeight} where lastHeight is the last transaction's block_height.

Coding-Enthusiast avatar Feb 15 '22 04:02 Coding-Enthusiast