BitcoinKit icon indicating copy to clipboard operation
BitcoinKit copied to clipboard

How to check balance using HDWallet?

Open DiwakarThapa opened this issue 6 years ago • 3 comments

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

DiwakarThapa avatar Jan 28 '19 15:01 DiwakarThapa

The same problem

artemmelnyk avatar Jul 11 '19 15:07 artemmelnyk

I do have same issue. Its not clear on how to check the balance. Frustrated over how I can use. Anybody happy to answer..?

mobihunterz avatar Jul 28 '19 17:07 mobihunterz

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.

cacaosteve avatar Apr 28 '20 16:04 cacaosteve