Bitcoin Forum
May 06, 2024, 05:12:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can coinbase transaction contains multiple destinations?  (Read 222 times)
hushan (OP)
Member
**
Offline Offline

Activity: 61
Merit: 15


View Profile
April 23, 2018, 12:31:37 AM
 #1

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?

BTC: 38ykUxZeSv5aqav1keCc4KUxXLPPGkfrm5 LTC: MPpWNvqDCVB1PHJt4A28j9oFfc6Y1KKDno ETH: 0x07C8c68d5253247038947EF9495b054160c8737c
1714972362
Hero Member
*
Offline Offline

Posts: 1714972362

View Profile Personal Message (Offline)

Ignore
1714972362
Reply with quote  #2

1714972362
Report to moderator
1714972362
Hero Member
*
Offline Offline

Posts: 1714972362

View Profile Personal Message (Offline)

Ignore
1714972362
Reply with quote  #2

1714972362
Report to moderator
1714972362
Hero Member
*
Offline Offline

Posts: 1714972362

View Profile Personal Message (Offline)

Ignore
1714972362
Reply with quote  #2

1714972362
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714972362
Hero Member
*
Offline Offline

Posts: 1714972362

View Profile Personal Message (Offline)

Ignore
1714972362
Reply with quote  #2

1714972362
Report to moderator
1714972362
Hero Member
*
Offline Offline

Posts: 1714972362

View Profile Personal Message (Offline)

Ignore
1714972362
Reply with quote  #2

1714972362
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
April 23, 2018, 12:50:01 AM
Merited by Foxpup (1), suchmoon (1)
 #2

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).

hushan (OP)
Member
**
Offline Offline

Activity: 61
Merit: 15


View Profile
April 23, 2018, 12:55:34 AM
 #3

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?

BTC: 38ykUxZeSv5aqav1keCc4KUxXLPPGkfrm5 LTC: MPpWNvqDCVB1PHJt4A28j9oFfc6Y1KKDno ETH: 0x07C8c68d5253247038947EF9495b054160c8737c
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
April 23, 2018, 01:35:40 AM
 #4

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.

Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2298


View Profile
April 23, 2018, 05:00:53 AM
 #5

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.
TheQuin
Hero Member
*****
Offline Offline

Activity: 2576
Merit: 882


Freebitco.in Support https://bit.ly/2I9BVS2


View Profile WWW
April 23, 2018, 03:04:30 PM
 #6

Here's an example one mined by ckpool with 151 outputs including some Segwit ones.

https://btc.com/ae45a6033dfd718e3240151344f6b8c06a27ea5434fcfc2aaf983d820f8d8f8d

freebitcoin.TO WIN A  LAMBORGHINI!..

.
                                ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
                    ▄▄▄▄▄██████████████████████████████████▄▄▄▄
                    ▀██████████████████████████████████████████████▄▄▄
                    ▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
                    ▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
                      ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
                           ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
                   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2298


View Profile
April 23, 2018, 03:50:34 PM
 #7

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....
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
April 23, 2018, 04:17:11 PM
 #8


There is no tx fee paid in coinbase transactions....
[/quote]
I guess he means transaction fees of transactions in the block as block reward.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!