<blockquote>
<p>The replacement transaction must pay for its own bandwidth in addition
to the amount paid by the original transactions at or above the rate
set by the node's minimum relay fee setting. For example, if the
minimum relay fee is 1 satoshi/byte and the replacement transaction is
500 bytes total, then the replacement must pay a fee at least 500
satoshis higher than the sum of the originals.</p>
</blockquote>
<p>So to calculate the minimum replacement fee for your tx, calculate the <code>minrelaytxfee</code> from your mempoolinfo times the size of your replacement tx.</p>

CC BY-SA 4.0
2024-02-21T08:52:39.657Z
2024-02-21T08:52:39.657Z
Juha Siivikko
<p>I try to replace this transaction 13bc8f787f7c972702b6d14b8c0b36335aac5d0027800e2de277910a5eff86fb by higher fee, when broadcast return err: <code>broadcast error, -26: insufficient fee, rejecting replacement d05cdb24407169b39abfddd03ae9bef33a1eb49a7f59db4a39c19688a5af99b1, less fees than conflicting txs; 0.00003562 &lt; 0.00009786</code></p>
<p>I would like to know how to calculate the minimum replacement fee (0.00009786)，</p>
<p>the getmempoolinfo：<code>{&quot;result&quot;:{&quot;loaded&quot;:true,&quot;size&quot;:42800&quot;bytes&quot;:80705990,&quot;usage&quot;:253822900,&quot;total_fee&quot;:6.57420956,&quot;maxmempool&quot;:300000000,&quot;mempoolminfee&quot;:0.00002600,&quot;minrelaytxfee&quot;:0.00001000,&quot;incrementalrelayfee&quot;:0.00001000,&quot;unbroadcastcount&quot;:0,&quot;fullrbf&quot;:false},&quot;error&quot;:null,&quot;id&quot;:&quot;curltest&quot;}</code></p>

<replace-by-fee>
btc RBF insufficient fee, rejecting replacement
jeff bule
# btc RBF insufficient fee, rejecting replacement

(Asked by: username_0 on 2024-02-21)

I try to replace this transaction 13bc8f787f7c972702b6d14b8c0b36335aac5d0027800e2de277910a5eff86fb by higher fee, when broadcast return err: `broadcast error, -26: insufficient fee, rejecting replacement d05cdb24407169b39abfddd03ae9bef33a1eb49a7f59db4a39c19688a5af99b1, less fees than conflicting txs; 0.00003562 < 0.00009786`

I would like to know how to calculate the minimum replacement fee (0.00009786)，

the getmempoolinfo：`{"result":{"loaded":true,"size":42800"bytes":80705990,"usage":253822900,"total_fee":6.57420956,"maxmempool":300000000,"mempoolminfee":0.00002600,"minrelaytxfee":0.00001000,"incrementalrelayfee":0.00001000,"unbroadcastcount":0,"fullrbf":false},"error":null,"id":"curltest"}`

**Tags:** replace-by-fee


---

## 1 answers

### Answer by username_1 on 2024-02-21. Score: 0

> The replacement transaction must pay for its own bandwidth in addition
> to the amount paid by the original transactions at or above the rate
> set by the node's minimum relay fee setting. For example, if the
> minimum relay fee is 1 satoshi/byte and the replacement transaction is
> 500 bytes total, then the replacement must pay a fee at least 500
> satoshis higher than the sum of the originals.

So to calculate the minimum replacement fee for your tx, calculate the `minrelaytxfee` from your mempoolinfo times the size of your replacement tx.


---

