<p>A single payment is better for both purposes.  The transaction fee is relative to the size of the transaction in bytes, so a 1 KB transaction which pays a $0.10 fee is equal to a 10 KB transaction that pays a $1.00 fee, all other things being equal.</p>

<p>A typical transaction that pays a single other person will have a 4-byte version, a 36-byte outpoint (previous output identifier), a 73-byte signature script, a 4-byte sequence number, two outputs of about 33 bytes each---one for the payment and one for the change (8-byte value, 25-byte pubkey script for P2PKH)---and a 4-byte locktime, plus a few 1-byte compactSize uints for the variable-length fields.  That's about 187 bytes total for one transaction and 1,870 bytes for ten transactions.</p>

<p>On the other hand, a transaction with 10 external payments will have the same version, same outpoint, same signature, same-byte-size change payment, and same locktime (about 154 bytes).  It'll also have 10 payments with 33-byte outputs (about 330 bytes).  That's about 484 bytes total for all ten payments, about 25% as many bytes.</p>

<p>What you call sub-payments (outputs) can't fail individually.  When the transaction is accepted by a node, it checks the outputs to make sure they pass that node's validation rules.  After that point, the only thing which can make them invalid is if you create a double-spend---another transaction which spends the same input as used in the first transaction.</p>

CC BY-SA 3.0
2014-11-14T04:26:28.457Z
2014-11-14T04:26:28.457Z
David A. Harding
<p>There are more variables at play than you have listed, so I can't answer with certainty. <a href="https://bitcoin.stackexchange.com/questions/7537/calculator-for-estimated-tx-fees">Calculator for estimated TX-Fees</a> lists some of the considerations as to when a fee is required, and how much the fee is. (but note that some of the info there is out of date due to <a href="https://bitcointalk.org/index.php?topic=219504.0" rel="nofollow noreferrer">a change</a>; <a href="https://en.bitcoin.it/wiki/Transaction_fees" rel="nofollow noreferrer">the Bitcoin wiki</a> has more up to date info, and is also a good resource on this subject) For example, how many inputs are there, and what sizes and ages are they.</p>

<p>That said, I think that <em>most likely</em>, the best thing to do would be to do it all in one large transaction and pay 0.0001 BTC per 1000 bytes. I'd expect you'd have to pay 0.0001 or 0.0002 BTC (~US$0.06-0.12) for the transaction. Including more wouldn't hurt, and might improve how long it'll take to get it confirmed.</p>

<p>Assuming the transaction is valid (you should make sure it is before broadcasting it) and includes a large enough fee to be relayed by most peers and miners, you shouldn't have to worry about anything going wrong with the transaction. E.g. none of your recipients can invalidate the transaction.</p>

CC BY-SA 3.0
2014-03-20T20:44:10.423Z
2014-03-20T20:49:32.907Z
2017-04-13T12:47:36.647Z
Tim S.
<p>If I have to make 10 payments of various amounts to different recipients: </p>

<ul>
<li><p>What is the best approach for the lowest tx fee? One transaction that will serve many (or all) logical payments (many inputs and outputs) or many but small in size transactions that will each serve a single logical payment?</p></li>
<li><p>Which of the above transactions is most likely to get completed successfully? In the combining transaction, if a sub-payment fails after the transaction has been broadcasted to the network will all of the other sub-payments fail and will the transaction never confirm?</p></li>
</ul>

<raw-transaction>
To combine or not to combine
Doug Peters
# To combine or not to combine

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

If I have to make 10 payments of various amounts to different recipients:

* What is the best approach for the lowest tx fee? One transaction that will serve many (or all) logical payments (many inputs and outputs) or many but small in size transactions that will each serve a single logical payment?
* Which of the above transactions is most likely to get completed successfully? In the combining transaction, if a sub-payment fails after the transaction has been broadcasted to the network will all of the other sub-payments fail and will the transaction never confirm?

**Tags:** raw-transaction


---

## 2 answers

### Answer by username_2 on 2014-03-20. Score: 4 | Accepted answer

There are more variables at play than you have listed, so I can't answer with certainty. [Calculator for estimated TX-Fees](https://bitcoin.stackexchange.com/questions/7537/calculator-for-estimated-tx-fees) lists some of the considerations as to when a fee is required, and how much the fee is. (but note that some of the info there is out of date due to [a change](https://bitcointalk.org/index.php?topic=219504.0); [the Bitcoin wiki](https://en.bitcoin.it/wiki/Transaction_fees) has more up to date info, and is also a good resource on this subject) For example, how many inputs are there, and what sizes and ages are they.

That said, I think that *most likely*, the best thing to do would be to do it all in one large transaction and pay 0.0001 BTC per 1000 bytes. I'd expect you'd have to pay 0.0001 or 0.0002 BTC (~US$0.06-0.12) for the transaction. Including more wouldn't hurt, and might improve how long it'll take to get it confirmed.

Assuming the transaction is valid (you should make sure it is before broadcasting it) and includes a large enough fee to be relayed by most peers and miners, you shouldn't have to worry about anything going wrong with the transaction. E.g. none of your recipients can invalidate the transaction.


---

### Answer by username_1 on 2014-11-14. Score: 2

A single payment is better for both purposes. The transaction fee is relative to the size of the transaction in bytes, so a 1 KB transaction which pays a $0.10 fee is equal to a 10 KB transaction that pays a $1.00 fee, all other things being equal.

A typical transaction that pays a single other person will have a 4-byte version, a 36-byte outpoint (previous output identifier), a 73-byte signature script, a 4-byte sequence number, two outputs of about 33 bytes each---one for the payment and one for the change (8-byte value, 25-byte pubkey script for P2PKH)---and a 4-byte locktime, plus a few 1-byte compactSize uints for the variable-length fields. That's about 187 bytes total for one transaction and 1,870 bytes for ten transactions.

On the other hand, a transaction with 10 external payments will have the same version, same outpoint, same signature, same-byte-size change payment, and same locktime (about 154 bytes). It'll also have 10 payments with 33-byte outputs (about 330 bytes). That's about 484 bytes total for all ten payments, about 25% as many bytes.

What you call sub-payments (outputs) can't fail individually. When the transaction is accepted by a node, it checks the outputs to make sure they pass that node's validation rules. After that point, the only thing which can make them invalid is if you create a double-spend---another transaction which spends the same input as used in the first transaction.


---

