0

I have a problem with bitcoin in sending payments from one user to another user. When I try to send, I get the error txfee cannot be less than min relay tx fee (0.00001000 BTC/kB).

Please help with possible solutions enter image description here

1 Answer 1

1

You need to increase your transaction fee to meet the minimums required by the node you are connected to. If you use a fee below that, the node (and other nodes on the network) will refuse to broadcast your transactions, preventing them from reaching miners.

1
  • const calculateTxFee = async (input, output, confirmations) => { try { const fee = await client.estimateSmartFee(6); var txFee = (((input * 148 + output * 34 + 10) + 40) / 1024) * fee['feerate']; console.log("txfee-------->", txFee) return txFee; } catch (err) { console.log("error 4 ------", err); throw err; } } This is the node.js code which I have written , please suggest what else should I add ? Nov 12, 2019 at 14:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.