BitcoinKit
BitcoinKit copied to clipboard
How to check balance using HDWallet?
Current behavior
this code try! blockStore.calculateBalance(address: address) returns 0
Expected behavior
0.1 TBTC is in the test address
Steps to reproduce
Environment
- BitcoinKit: ?.?
- Xcode Version: 10.2
- Swift Version: 4.2
The same problem
I do have same issue. Its not clear on how to check the balance. Frustrated over how I can use. Anybody happy to answer..?
Have you had any luck? HDWallet has an unavailable deprecated property but it is 0. I am just trying to convert WalletExample to work with HDWallet, since there is no Wallet. The code currently seems to take one address and calculate the balance from that by looking up in the database using some SQL statements.