<p>That depends what wallet/client you're using to build the transaction. The concept of &quot;change&quot; is at the application level. As far as the ledger is concerned, it doesn't exist at all. All that's important is that the transaction balances.</p>

CC BY-SA 4.0
2022-10-03T14:15:23.273Z
Thanks, that makes total sense!
LACE pool
CC BY-SA 4.0
2022-10-03T12:52:31.977Z
2022-10-03T12:52:31.977Z
james
<p>Given a transaction with multiple outputs, is the UTxO for the change always the very last index of the list of all outputs?</p>
<p>To demonstrate what I mean:</p>
<p>Given the following theoretical transaction</p>
<pre><code>transaction
 - input #1 (100M lovelace from address XX0)
 - output idx#0 (40M lovelace to address XX1)
 - output idx#1 (50M lovelace to address XX2)
 - output idx#2 (10M lovelace change to address XX0)
</code></pre>
<p>Is it safe to assume the change is ALWAYS the last index of the output list?</p>
<p>It does make sense to me, but I need to know if I can rely on that.</p>
<p>Thank you!</p>

<transaction><utxo>
Is the UTxO for change always the very last index of the outputs?
# Is the UTxO for change always the very last index of the outputs?

(Asked by: username_0 on 2022-10-03)

Given a transaction with multiple outputs, is the UTxO for the change always the very last index of the list of all outputs?
To demonstrate what I mean:
Given the following theoretical transaction
transaction
 - input #1 (100M lovelace from address XX0)
 - output idx#0 (40M lovelace to address XX1)
 - output idx#1 (50M lovelace to address XX2)
 - output idx#2 (10M lovelace change to address XX0)

Is it safe to assume the change is ALWAYS the last index of the output list?
It does make sense to me, but I need to know if I can rely on that.
Thank you!

**Tags:** transaction, utxo

---

## 1 answers

### Answer by username_1 on 2022-10-03. Score: 2 | Accepted answer

That depends what wallet/client you're using to build the transaction. The concept of "change" is at the application level. As far as the ledger is concerned, it doesn't exist at all. All that's important is that the transaction balances.

> **Comments:**
> **username_0**: Thanks, that makes total sense!  

---

