BitcoinKit icon indicating copy to clipboard operation
BitcoinKit copied to clipboard

Why the WalletExample Wallet.swift is different from the Bitcoinkit's Wallet.swift

Open Li-Qun opened this issue 6 years ago • 1 comments

I want to fetch the BTC wallet Balance , eg the test BTC address " mxHyCHjomPgZCReghohxtZYCrZCGcvZiMj". https://test-insight.bitpay.com/address/mxHyCHjomPgZCReghohxtZYCrZCGcvZiMj It owning some bitcoins. But use the WalletExample Wallet.swift "reloadBalance" func couldn't fetch the real balance just 0. The I try to use pod install the sdk. But I find that there isn't any reloadBalance func in Wallet.swift.

Dear writter, what should I do to fetch the btc cold wallt balance by using the bitcoinkit or some suggestions? Thanks a lot .

Li-Qun avatar Nov 09 '18 07:11 Li-Qun

Hi @Li-Qun . Wallet consists of several components. UtxoProvider is one of dependency, by default, BitcoinComUtxoProvider is set. BitcoinComUtxoProvider is a wrapper for Bitcoin.com API which is compatible with only BCH.

So you need to implement UtxoProvider for BTC.

usatie avatar Nov 19 '18 08:11 usatie