Can a single transaction have multiple outputs going to the same address?

8

1

I understand that a transaction can have multiple outputs. But can two outputs in a transaction refer to the same target address?

Here's how this would like in pseudo style:

[vout] => Array
        (
            [0] => Array
                (
                    [value] => 0.01
                    [scriptPubKey] => Array
                        (
                            [addresses] => Array
                                (
                                    [0] => bitcoinaddress_xyz
                                )

                        )

                )

            [1] => Array
                (
                    [value] => 0.02
                    [scriptPubKey] => Array
                        (
                            [addresses] => Array
                                (
                                    [0] => bitcoinaddress_xyz
                                )

                        )

                )

        )

Here the same address "bitcoinaddress_xyz" appears in both outputs.

I know that it would not make much sense to construct a transaction like this – I just would like to know if it is technically possible.

Thanks.

Max Min

Posted 2013-02-12T17:50:32.690

Reputation: 551

Answers

8

It is possible. Here is an example: http://blockchain.info/tx/4199f709bfab79f54938e80e11dc75c21a95e3183f8e8994306f5ff272fde42a

However, the bitcoin-qt GUI doesn't allow creating such transactions.

Such transactions might be useful in the context of colored coins, or where encoding information is involved.

Meni Rosenfeld

Posted 2013-02-12T17:50:32.690

Reputation: 18 542