Bitcoin Forum
April 05, 2020, 10:27:05 AM *
News: Latest Bitcoin Core release: 0.19.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can coinbase transaction contains multiple destinations?  (Read 141 times)
hushan
Jr. Member
*
Offline Offline

Activity: 57
Merit: 10


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

Posts: 1586082425

View Profile Personal Message (Offline)

Ignore
1586082425
Reply with quote  #2

1586082425
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 2086
Merit: 3223


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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

Activity: 57
Merit: 10


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: 2086
Merit: 3223


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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: 2100
Merit: 1890

BountyPortals.com


View Profile WWW
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.

The head executive of the executive office of the department of the redundancy department’s office
TheQuin
Hero Member
*****
Offline Offline

Activity: 1232
Merit: 720


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: 2100
Merit: 1890

BountyPortals.com


View Profile WWW
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....

The head executive of the executive office of the department of the redundancy department’s office
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 297

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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!