<p>No, you don't have to create inputs for all utxos at an address; but for every utxo you <strong>do</strong> add as an input, you need to spend it in full <em>(i.e. including assets that may be included)</em>, so your outputs and inputs add up correctly <em>(apart from the transaction fee)</em>.</p>

CC BY-SA 4.0
2022-07-04T16:26:51.060Z
2022-07-04T16:26:51.060Z
sean
<p>I'm developing some raw tx server-side scripts and dealing with ValueNotConservedUTxO errors. If I create a transaction from a specific address, must I create inputs for all the utxos and then add the ones I'm not sending elsewhere to a change address?</p>
<p>Hopefully I'm just missing a key understanding else I really don't understand why such a waste of blockchain data would be part of the plan.</p>

<transaction>
Creating transactions: is it required to send all utxos as inputs and outputs
# Creating transactions: is it required to send all utxos as inputs and outputs

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

I'm developing some raw tx server-side scripts and dealing with ValueNotConservedUTxO errors. If I create a transaction from a specific address, must I create inputs for all the utxos and then add the ones I'm not sending elsewhere to a change address?

Hopefully I'm just missing a key understanding else I really don't understand why such a waste of blockchain data would be part of the plan.

**Tags:** transaction

---

## 1 answers

### Answer by username_1 on 2022-07-04. Score: 1 | Accepted answer

No, you don't have to create inputs for all utxos at an address; but for every utxo you **do** add as an input, you need to spend it in full *(i.e. including assets that may be included)*, so your outputs and inputs add up correctly *(apart from the transaction fee)*.


---

