Balance equation
The account balance equation is the method used to combine an account’s components to compute its overall balance. When an account has only one component, calculating the balance is straightforward. However, when an account has multiple components, the balance equation can become more complex. For example, in a situation where an account tracks both ingresses and egresses, the balance equation would involve subtracting the egresses from the ingresses. Using this equation, businesses can accurately determine the net amount available in the account, reflecting the money coming in and going out.Creating accounts
The number of accounts in a ledger is unlimited. Accounts also do not need to be created prior being used, as submitting a transaction involving it will automatically make it exist in the ledger.Naming accounts
Accounts are identified by their address, which must match^[a-zA-Z_0-9]+(:[a-zA-Z_0-9]+){0,}$
. It recommended to use colons in addresses to organize them in structured segments, i.e. payments:001:authorization
, although this does not trigger any particular behavior on the ledger.
Using Metadata
Accounts can bear metadata, which in a key-value format. This metadata can be used to store any information that is relevant to the account, like a reference to an external system, or a description of the account.Accounts metadata can also be used in Numscript transactions, see metadata in Numscript for more information.