States are types that record the condition of a coin economy at a given time. By evaluating states, it is possible to verify the veracity of transactions that occur within your coin economy.

Balance

Balance is a state that records the current condition of an account balance. Balance state includes the amounts and issue dates of all coins held in an account.

Entry

The entry state is a ledger entry created by applying an action to an account balance. They are stored in the transaction ledger, which tracks all movement of assets between accounts. Each entry contains information such as the transaction ID, coin type, action, account ID, target, time, and an optional balance hash, which can be used for verifying the integrity of the entry and of the transaction as a whole.

Transaction

The transaction state represents the result of the execution of all actions that comprise an event. Actions occurring in an event follow the principle of atomicity, i.e an event occurs only if all the actions can be applied together, sequentially. If an action fails, for example, due to insufficient balance, then none of the actions are applied and the event does not occur.

The transaction stores information such as the original state of participating accounts, the original transaction amount, the execution time, the source event ID, and a hash that can be used to verify the integrity of the transaction.