yenom / BitcoinKit

Bitcoin protocol toolkit for Swift
MIT License
842 stars 262 forks source link

Cannot receive fee #275

Open alexj70 opened 2 years ago

alexj70 commented 2 years ago

Hi.

Cannot receive the fee

address of test wallet is "mtz74qT7WgtynjXEDpRUBMvpAPYGAhmJnq", balance: 0.0004 BTC

var pluginData = [UInt8: IPluginData]() if timeLockEnabled { pluginData[HodlerPlugin.id] = HodlerData(lockTimeInterval: self.selectedTimeInterval) }

        let fee = try bitcoinKit.fee(for: 10000, toAddress: toWallet, feeRate: 10000, pluginData: pluginData)

I receive error: notEnough

Environment