Transaction
A group of asset moves executed together as a single, atomic operation
A transaction is a group of one or more asset moves that are executed together as a single, atomic operation. Transactions in Nxos are designed to handle multi-hop scenarios, where assets may need to move through multiple accounts or undergo complex exchange patterns. By grouping asset moves into a transaction, Nxos ensures the integrity and consistency of the ledger, even in the face of high-volume, multi-asset transactions.
Every asset move in Nxos must belong to a transaction. The smallest possible transaction consists of a single asset move. However, transactions typically include at least two asset moves, such as one for a fee transaction and another for the actual transaction. A transaction can have a primary type defined by the user, but it can be composed of asset moves with varying types, involving different accounts and different assets.
This flexibility allows for the modeling of complex financial exchanges in a highly efficient manner. Nxos is designed to minimize the overhead of additional hops in a transaction, making it cost-effective and nearly negligible in most cases. The platform has demonstrated its ability to handle transactions with over 100 asset moves, showcasing its scalability and performance.
By enabling the creation of intricate, multi-hop transactions, Nxos empowers users to represent and execute sophisticated financial operations seamlessly. The atomic nature of transactions ensures that all asset moves within a transaction are processed successfully or rolled back in case of any failures, maintaining the integrity and consistency of the ledger at all times.
Example of a multi-hop Exchange transaction. Account 1 exchanges USD to EUR with a fee payment to a revenue account