Preview. Stack v4.0 has not been released, and what is documented here can still change before it does. The current release is v3.2, which covers this as Core Concepts.Go to v3.2
Ledger

Model Your Ledger

Choose account addresses, assets, metadata, account types, and fund-origin rules before writing transactions.

A durable ledger model gives every balance and transaction a stable business meaning. Make these decisions before you connect production traffic: changing an address or asset convention later does not rewrite the history already recorded under the old convention.

Work through the guides in order. Start with the business boundaries and account hierarchy, then define monetary units, metadata, validation rules, and any fund-origin buckets.

Model review#

Before writing production transactions, confirm that:

  • each ledger has one stated business purpose and failure boundary;
  • every account address has a stable owner and meaning;
  • each asset has one canonical precision;
  • monetary amounts are converted to integers outside Ledger;
  • metadata keys have an owner, lifecycle, and query requirement;
  • account types start in AUDIT before they move to STRICT;
  • colors are used only when balances must remain segregated, not as labels.
  • script text, address shape, and batch size were chosen against the write path, not inherited from Ledger 2.x guidance.