Inputs and Outputs
The fundamental concepts to understand the EUTxO (Extended Unspent Transaction Output) model of Cardano is inputs and outputs. Understanding it is key to developing on Cardano.
Let’s use a vending machine analogy to explain inputs and outputs in Cardano transactions.
1. How Vending Machine works
a. Outputs as Items in the Vending Machine
-
Think of outputs as items (e.g., snacks or drinks) in a vending machine. Each item has:
-
A value (e.g., $1 for a soda).
-
A label (e.g., "A1" for the soda’s location).
-
A condition (e.g., you need to insert $1 to get the soda).
-