1

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

1 Answer 1

0

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.

2
  • Although the case is uncommon but it is legal to reference same transaction, right? Apr 9 at 11:44
  • Yes, there is nothing in the Bitcoin protocol preventing some outputs to be spent with some other outputs in the same transaction. Apr 9 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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