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

Issues with connecting to Testnet via API #613

@SurpriseMF3000

Description

@SurpriseMF3000

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions