Balanced Transactions
This page explains balanced transactions and how they can be formed.
Last updated
This page explains balanced transactions and how they can be formed.
Last updated
Balanced transactions are characterized by a zero . They can be executed if they are valid and comply with the . One way of obtaining balanced transactions is through composition of matching, . However, a single party can often directly produce a balanced transaction without requiring any counterparty.
In the following, we show examples of transactions that can be sent by a single party, here Alice.
Often, transactions and actions within aim to change one or multiple properties of existing resource objects. Most of the time, a single, authorized party (i.e., the owner) can unilaterally execute the transaction. Actions can include, for example,
Transferring a resource, which changes the owner
Splitting and merging resources, which changes the quantity
Alice owns an apple resource ๐ and wants to transfer it to Bob.
Alice consumes her 3๐โAlice resource and creates a 3๐โBob resource for Bob.
3๐โAlice
3๐โBob
After execution, Alice has transferred 3๐ to Bob but the total quantity hasn't changed.
Changing resource properties requires resource to exist in the first place. However, immediately after the genesis of a resource controller (e.g., the launch of a new blockchain or the deployment of a protocol adapter) the associated commitment tree is empty. The question is how resources can be initially created but also finally consumed.
We call the process of initially creating a resource out of nothing initialization, and the process of finally consuming a resource finalization. The former and latter result in inflation and deflation of the supply (i.e., the total quantity) of the associated resource kind, respectively. Both require utilizing to balance the transaction.
Alice wants to initiallly create an apple resource (without consuming an existing one) and inflate the total ๐ supply by 3. To balance the transaction she uses an .
Alice wants to finally consume a 3๐ resource (without creating a new one) to deflate the total ๐ supply by 3. To balance the transaction she uses an .