Anoma Developer Documentation
  • Overview
  • Build
    • Getting Started
    • Your First Anoma App
      • Define a Resource
      • Write a Transaction Function
      • Write a Projection Function
      • Run your App
    • Anoma App Examples
  • LEARN
    • Overview
    • State Model
      • Model Comparison
    • Resource Machine
      • Information Flow Control
    • Resources
      • State
      • Logic
      • Kind
      • Lifecycle
    • Transactions
      • Delta
      • Actions
      • Balanced Transactions
      • Intents
    • Applications
      • Backend
      • Interface
    • Services
      • Indexing
      • Solving
Powered by GitBook
On this page
  1. LEARN
  2. Transactions

Delta

This page explains the concept of the transaction balance.

PreviousTransactionsNextActions

Last updated 2 months ago

The transaction delta value, also referred to as the transaction balance, is computed by adding and subtracting the quantities of created and consumed resources of the same kind, respectively.

Transactions with a zero delta value are . Transactions with a non-zero delta value are unbalanced transactions a.k.a. .

Test your understanding about the transaction delta by completing the exercise below.

Is the transaction balanced? Answer for each row.

Consumed
Created
Answer

2🍏

2🍏

2🍏

1🍏 1🍏

1🍏

1🐚

2🍏 1🐚

1🍏 1🐚

2🍏 1🐚

1🍏 1🍎 1🐚

1🍏 2🍎 2🍎 3🐚

1🍏 4🍎 1🐚 2🐚

Is the transaction balanced? Answer for each row.

Consumed
Created
Answer

2🍏

2🍏

2🍏

1🍏 1🍏

1🍏

1🐚

2🍏 1🐚

1🍏 1🐚

2🍏 1🐚

1🍏 1🍎 1🐚

1🍏 2🍎 2🍎 3🐚

1🍏 4🍎 1🐚 2🐚

balanced transactions
intents