<p>The transaction fee is specified by the difference of the sum of inputs and the sum of outputs, i.e.</p>

<pre><code>transaction fee = Σ(inputs) - Σ(outputs)
</code></pre>

<p>In other words, you set a transaction fee by sending more than you assign to the recipient.</p>

CC BY-SA 3.0
2014-03-01T09:50:58.597Z
2014-03-01T09:50:58.597Z
Murch
<p>I am able to createrawtransaction and sendrawtransaction but how am I able to specify a transaction fee for the miners?</p>

<p>I am looking at possibly large transaction sizes due to multiple inputs (around 100) and I have had a few of them never show up to their destinations and some of them do show up. I am assuming this might be due to the lack of transaction fees since I am using the exact same code to send both raw transactions.</p>

<p>So again, how can I specify a transaction fee in Bitcoind with creating a raw transaction. </p>

<p>And by the way, I am spending the funds from a multisignature address, in which 2 of the private keys are not controlled locally, so settxfee will not suffice. I want to write it into the transaction itself.</p>

<transaction-fees>
CreateRawTransaction and SendRawTransaction how to specify transaction fee?
Wannabee Bitcoin Dev
# CreateRawTransaction and SendRawTransaction how to specify transaction fee?

(Asked by: username_0 on 2014-03-01)

I am able to createrawtransaction and sendrawtransaction but how am I able to specify a transaction fee for the miners?

I am looking at possibly large transaction sizes due to multiple inputs (around 100) and I have had a few of them never show up to their destinations and some of them do show up. I am assuming this might be due to the lack of transaction fees since I am using the exact same code to send both raw transactions.

So again, how can I specify a transaction fee in Bitcoind with creating a raw transaction.

And by the way, I am spending the funds from a multisignature address, in which 2 of the private keys are not controlled locally, so settxfee will not suffice. I want to write it into the transaction itself.

**Tags:** transaction-fees


---

## 1 answers

### Answer by username_1 on 2014-03-01. Score: 5 | Accepted answer

The transaction fee is specified by the difference of the sum of inputs and the sum of outputs, i.e.

```
transaction fee = Σ(inputs) - Σ(outputs)

```

In other words, you set a transaction fee by sending more than you assign to the recipient.


---

