<p>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.</p>

CC BY-SA 4.0
2019-11-12T14:07:44.527Z
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 ?
Mansi Mishra MEAN
CC BY-SA 4.0
2019-11-12T13:02:25.833Z
2019-11-12T13:02:25.833Z
Raghav Sood
<p>I have a problem with bitcoin in sending payments from one user to another user. When I try to send, I get the error <code>txfee cannot be less than min relay tx fee (0.00001000 BTC/kB)</code>.</p>
<p>Please help with possible solutions <a href="https://i.sstatic.net/paKeF.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/paKeF.jpg" alt="enter image description here" /></a></p>

<transaction-fees><mempool><sending>
"Relay fee" error when sending funds from one account to another
Mansi Mishra MEAN
# "Relay fee" error when sending funds from one account to another

(Asked by: username_0 on 2019-11-12)

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](https://i.sstatic.net/paKeF.jpg)](https://i.sstatic.net/paKeF.jpg)

**Tags:** transaction-fees, mempool, sending


---

## 1 answers

### Answer by username_1 on 2019-11-12. Score: 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.

> **Comments:**
> **username_0**: 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 ?  

---

