<p>A transaction consumes a set of funds (so called UTxOs) and produces a set. Additionally, it can burn or mint native tokens. An unbalanced transaction is a transaction where the sum of fees and funds produced are not equal to the sum of input funds, minted tokens, and burned tokens.</p>
<p>The balancing takes care of this and adds necessary funds in the inputs and outputs to get to the equality.</p>

CC BY-SA 4.0
2022-03-07T09:50:19.520Z
Thanks! Oh so this is basically what Lars initially mentioned that the sums of the amounts that are used as inputs, should equal the amounts of the output? Adjustment then is basically the distribution of funds in order for those numbers to add up?
Tasos Valtinos
CC BY-SA 4.0
2022-03-07T11:05:28.370Z
Balancing consists of two parts: i) adding additional inputs ii) distributing excess funds to outputs. Often both parts are needed but in some cases i) or ii) can also be needed alone.
Jey
CC BY-SA 4.0
2022-03-07T09:36:08.370Z
2022-03-07T09:36:08.370Z
Jey
<p>In Week06, there was an implementation of adjusting an unbalanced transaction in the plutus script.
Can someone explain what an unbalanced transaction really is?
And how does it actually work when we say adjusting an unbalanced transaction?
How do we basically identify that a transaction is unbalanced?</p>
<p>Thank you!</p>

<plutus><plutus-pioneer-program><transaction>
What is an unbalanced transaction? How does adjusting an unbalanced tx actually work?
# What is an unbalanced transaction? How does adjusting an unbalanced tx actually work?

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

In Week06, there was an implementation of adjusting an unbalanced transaction in the plutus script.
Can someone explain what an unbalanced transaction really is?
And how does it actually work when we say adjusting an unbalanced transaction?
How do we basically identify that a transaction is unbalanced?

Thank you!

**Tags:** plutus, plutus-pioneer-program, transaction

---

## 1 answers

### Answer by username_1 on 2022-03-07. Score: 3

A transaction consumes a set of funds (so called UTxOs) and produces a set. Additionally, it can burn or mint native tokens. An unbalanced transaction is a transaction where the sum of fees and funds produced are not equal to the sum of input funds, minted tokens, and burned tokens.

The balancing takes care of this and adds necessary funds in the inputs and outputs to get to the equality.

> **Comments:**
> **username_0**: Thanks! Oh so this is basically what Lars initially mentioned that the sums of the amounts that are used as inputs, should equal the amounts of the output? Adjustment then is basically the distribution of funds in order for those numbers to add up?  
> **username_1**: Balancing consists of two parts: i) adding additional inputs ii) distributing excess funds to outputs. Often both parts are needed but in some cases i) or ii) can also be needed alone.  

---

