Author

Topic: Can coinbase transaction contains multiple destinations? (Read 252 times)

sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD

There is no tx fee paid in coinbase transactions....
[/quote]
I guess he means transaction fees of transactions in the block as block reward.
copper member
Activity: 2996
Merit: 2374
Can coinbase transaction contains multiple destinations, or does it have to be one output? For example, for the current reward 12.5, if set the coinbase tx to send 10 to one address and 2.5 to another, is it a valid coinbase tx and will it get confirmed by the network?
Yes, you can have a coinbase transaction with multiple outputs. The sum of the outputs just needs to be less than the block reward (block subsidy plus transaction fees).
*Less than or equal to the block reward.

But in reality almost all miner set the outputs (plus fees) is equal with block reward & tx fee Roll Eyes

Also, if OP is interested in technical details, you can see more info at https://www.safaribooksonline.com/library/view/mastering-bitcoin/9781491902639/ch08.html. It's a bit outdated though.
There is no tx fee paid in coinbase transactions....
hero member
Activity: 2576
Merit: 883
Freebitco.in Support https://bit.ly/2I9BVS2
Here's an example one mined by ckpool with 151 outputs including some Segwit ones.

https://btc.com/ae45a6033dfd718e3240151344f6b8c06a27ea5434fcfc2aaf983d820f8d8f8d
copper member
Activity: 2996
Merit: 2374
Can coinbase transaction contains multiple destinations, or does it have to be one output? For example, for the current reward 12.5, if set the coinbase tx to send 10 to one address and 2.5 to another, is it a valid coinbase tx and will it get confirmed by the network?
Yes, you can have a coinbase transaction with multiple outputs. The sum of the outputs just needs to be less than the block reward (block subsidy plus transaction fees).
*Less than or equal to the block reward.
staff
Activity: 3458
Merit: 6793
Just writing some code
Thanks, another question, can the coinbase output be P2SH address? And can it be segwit?
Yes. The outputs for a coinbase transaction are just like outputs for any other transaction.
member
Activity: 61
Merit: 15
Can coinbase transaction contains multiple destinations, or does it have to be one output? For example, for the current reward 12.5, if set the coinbase tx to send 10 to one address and 2.5 to another, is it a valid coinbase tx and will it get confirmed by the network?
Yes, you can have a coinbase transaction with multiple outputs. The sum of the outputs just needs to be less than the block reward (block subsidy plus transaction fees).

Thanks, another question, can the coinbase output be P2SH address? And can it be segwit?
staff
Activity: 3458
Merit: 6793
Just writing some code
Can coinbase transaction contains multiple destinations, or does it have to be one output? For example, for the current reward 12.5, if set the coinbase tx to send 10 to one address and 2.5 to another, is it a valid coinbase tx and will it get confirmed by the network?
Yes, you can have a coinbase transaction with multiple outputs. The sum of the outputs just needs to be less than the block reward (block subsidy plus transaction fees).
member
Activity: 61
Merit: 15
Can coinbase transaction contains multiple destinations, or does it have to be one output? For example, for the current reward 12.5, if set the coinbase tx to send 10 to one address and 2.5 to another, is it a valid coinbase tx and will it get confirmed by the network?
Jump to: