Accounts
The M10 ledger is made out of a tree of accounts. Every account, besides the root, has a parent. The parent can be thought of in a few ways. Let's think about how most banking systems work around the world. You, dear reader, most likely have an account at some bank. Your bank has an account at your central bank, that holds all of the bank's funds.
OK, that's not fully the truth. Your bank probably holds its funds partially in physical assets (i.e cold-hard cash), and assets at your central bank. But for simplicity's sake imagine it all at the CB
In the M10 ledger, your account's parent is the bank's account at the CB. If a key has permission to an account, it also has access to its children.
Transfers also "walk" the account hierarchy, you can find more details in the transfers docs. If an account has children it is referred to as an "issuance", account
as it can "issue" funds to its children. Going back to the bank example, imagine you want to take out a loan of some money.
The bank does not need the full amount of the loan to give you the funds. Rather it "creates" (or issues) some money to you. The account hierarchy allows this same thing to happen. If your account has children, you can see a recursive sum of all the children's balance in the issuance.issued_balance
field. For instance, this is useful for a bank or central bank to query all the money in their purview.
Model
API Calls
Create
- Rust
- TS
- Dart
- CLI
List
- Rust
- TS
- Dart
- CLI
Get
- Rust
- TS
- Dart
- CLI