<p>You can only do this if you set the RBF bit on the original transaction.</p>

CC BY-SA 3.0
2017-11-04T21:45:45.453Z
Hey, don't hate the player. Hate the game. 
Luke Mlsna
CC BY-SA 3.0
2017-10-31T21:21:19.340Z
2017-10-31T21:21:19.340Z
Luke Mlsna
<p>I want to modify dynamically the fee for each transaction made by the users who use my website. I calculate the fees dynamically but I don't know how can I apply that custom fee for each user. I am trying it in the following way:</p>

<pre><code>$this-&gt;bitcoin-&gt;settxfee($fee);
$output = $this-&gt;bitcoin-&gt;sendtoaddress($toAddress, $amount);
</code></pre>

<p>If someone can point me in the right direction I'd be grateful</p>

<bitcoind><transaction-fees><json-rpc>
How to modify dynamically the fee of a transaction?
John Graham
# How to modify dynamically the fee of a transaction?

(Asked by: username_0 on 2017-10-30)

I want to modify dynamically the fee for each transaction made by the users who use my website. I calculate the fees dynamically but I don't know how can I apply that custom fee for each user. I am trying it in the following way:
$this->bitcoin->settxfee($fee);
$output = $this->bitcoin->sendtoaddress($toAddress, $amount);

If someone can point me in the right direction I'd be grateful

**Tags:** bitcoind, transaction-fees, json-rpc


---

## 1 answers

### Answer by username_1 on 2017-10-31. Score: -1

You can only do this if you set the RBF bit on the original transaction.

> **Comments:**
> **username_1**: Hey, don't hate the player. Hate the game.   

---

