Can I have a single Bitcoin transaction with several outputs where two of those outputs are to the same address?
Can I have both these outputs in the same transaction?
amount1: 1.2 address: 1Ant11EeZU7V49puUeLsDvbUUi9HS5xSg2
amount2: .2 address: 1Ant11EeZU7V49puUeLsDvbUUi9HS5xSg2
My guess is there's nothing illegal about it. But it's kinda mean, both to the recipient of the transaction and to the network. The reason is that you have the opportunity here to reduce the UTXO set by one and you're not taking it. Also, for whoever wants to spend those outputs, you're hurting them a little bit too. Imagine whoever owns that address wants to spend 1.3BTC, they have to include both of these outputs in their transaction, making their transaction, meaning that they'll probably have to pay a bit more in fees. Do you see this?
Also, inb4DannyHamilton, the outputs aren't spent to an address, they're spent to an output script.