BitGo / bitgo-utxo-lib

UTXO coins functions implemented in pure JavaScript
83 stars 142 forks source link

absurdly-high-fee, 89560829 > 10000000 (code 256) #87

Closed Yasir-Shah closed 3 years ago

Yasir-Shah commented 3 years ago

I'm unable to send transaction having below error "message": "Cannot send transaction: absurdly-high-fee, 89560829 > 10000000 (code 256)",

var txb = new litecoin.TransactionBuilder(litecoin.networks.litecoin,1500); var keyPair = litecoin.ECPair.fromWIF(this.privateKey, litecoin.networks.litecoin); txb.addInput("d73cc49b9a8de4d66e4d767cacc0800b7d99ad009cdbfb62881258475a022350", 0); txb.addOutput(toAddress, amountInSatoshi); let a = amountInSatoshi + 1500 txb.sign(0, keyPair, '', litecoin.Transaction.SIGHASH_SINGLE,a); console.log(txb); const txSerial = txb.build().toHex()