This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Description
Hello,
im facing Issues with with connecting to Testnet via Alamofire.
Error:
ERROR : API IN: POST https://btc-testnet.horizontalsystems.xyz/api/tx/address
noResponse(reason: Optional("Session was invalidated without error, so it was likely deinitialized unexpectedly. Be sure to retain a reference to your Session for the duration of your requests."))
Code:
func checkbalance(){
print("CheckBalance start");
let bitcoinKit: BitcoinKit
let words = [Safety wise]
bitcoinKit = try! BitcoinKit(withWords: words, bip: .bip44, walletId: "bitcoin-wallet-id", syncMode: .api, networkType: .testNet, logger: .none)
bitcoinKit.start()
print(bitcoinKit.receiveAddress())
print(bitcoinKit.balance)
print(bitcoinKit.statusInfo)
try? bitcoinKit.send(to: "mrjQyzbX9SiJxRC2mQhT4LvxFEmt9KEeRY", value: 1000, feeRate: 10000, sortType: .none)
print("BTC session completed!")
bitcoinKit.stop()
}
Thanks for Help!