<p>Outputs spent by a transaction simply reference the txid of a previous transaction and the index of the output being spend. There is nothing preventing you from referencing the same transaction multiple times with different output indeces.</p>
<p>However, this doesn't sound like something that will often happen in practice. If a transaction is spending multiple outputs, they are more than likely controlled by the same entity, which means someone previously had to send a transaction with multiple outputs going to the same entity. There are few reasons to do that and not send one larger output.</p>

CC BY-SA 4.0
2022-04-09T11:44:33.580Z
Although the case is uncommon but it is legal to reference same transaction, right?
Animesh Bilthare
CC BY-SA 4.0
2022-04-09T14:34:06.877Z
Yes, there is nothing in the Bitcoin protocol preventing some outputs to be spent with some other outputs in the same transaction.
Vojtěch Strnad
CC BY-SA 4.0
2022-04-09T11:40:21.787Z
2022-04-09T11:40:21.787Z
Vojtěch Strnad
<p>Is it possible to spend UTXOs received in same transaction? Or we need to issue a new transaction for spend those UTXOs?</p>

<transactions>
Spending UTXO recieved in same transaction
Animesh Bilthare
# Spending UTXO recieved in same transaction

(Asked by: username_0 on 2022-04-09)

Is it possible to spend UTXOs received in same transaction? Or we need to issue a new transaction for spend those UTXOs?

**Tags:** transactions


---

## 1 answers

### Answer by username_1 on 2022-04-09. Score: 1

Outputs spent by a transaction simply reference the txid of a previous transaction and the index of the output being spend. There is nothing preventing you from referencing the same transaction multiple times with different output indeces.

However, this doesn't sound like something that will often happen in practice. If a transaction is spending multiple outputs, they are more than likely controlled by the same entity, which means someone previously had to send a transaction with multiple outputs going to the same entity. There are few reasons to do that and not send one larger output.

> **Comments:**
> **username_0**: Although the case is uncommon but it is legal to reference same transaction, right?  
> **username_1**: Yes, there is nothing in the Bitcoin protocol preventing some outputs to be spent with some other outputs in the same transaction.  

---

