8

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.

1 Answer 1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.