I'm reading through the Mastering Bitcoin book and the section talking about what nodes check for to ensure a transaction is valid before accepting it refers to this:

Each node verifies every transaction against a long checklist of criteria:


For each input, the referenced output must exist and cannot already be spent.

However, I'm not sure exactly what it means for "an output to exist". How can an output exist if I am creating it now with this transaction?

2 Answers 2


After reviewing the structure of a transaction, I now understand what is meant by that statement.

enter image description here

The input is the UTXO, and the output is the output of that UTXO. So when it says the output must exist and cannot already be spent, it's saying the output of the UTXO must exist and not already be spent.


It says "referenced output", which means output of previous transaction. (The one you are spending.)

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.