canton.core Table: fact_balance_changes Type: Incremental
Description
Tracks balance changes for parties resulting from transfer operations. Uses LATERAL FLATTEN to extract individual balance changes from the balanceChanges array in transfer event results.Key Use Cases
- Analyzing balance movements for specific parties
- Understanding holding fee impacts
- Tracking initial amount changes per party
- Monitoring amulet price at time of balance changes
Important Relationships
- Derived from
silver__eventswhere exercise_result contains balanceChanges - Links to transfer events via
event_id
Commonly-used Fields
party: The party whose balance changedchange_to_initial_amount: Change to the party’s initial amountchange_to_holding_fees_rate: Change to holding fees rateamulet_price: USD price of amulet at time of changeeffective_at: When the balance change occurred
Columns
| Column Name | Data Type | Description |
|---|---|---|
| UPDATE_ID | TEXT | Unique identifier for the Canton update/transaction. An update contains one or more events and represents an atomic change to the blockchain state. |
| MIGRATION_ID | TEXT | Canton migration identifier. Used to track different phases or migrations in the Canton network’s evolution. |
| RECORD_TIME | TEXT | Timestamp when the update was recorded in the system. |
| EFFECTIVE_AT | TEXT | Timestamp when the event or update became effective on the blockchain. This is the canonical time for ordering and analyzing blockchain events. |
| EVENT_ID | TEXT | Unique identifier for the event within the Canton blockchain. |
| EVENT_INDEX | TEXT | Ordering index of events within an update. Events within the same update are sequentially numbered starting from 0. |
| CHOICE | TEXT | The choice/action/method being executed on a contract. Examples include ‘DsoRules_RequestVote’, ‘AmuletRules_Transfer’, ‘LockedAmulet_Unlock’, etc. |
| ACTING_PARTIES | TEXT | Array of party identifiers who are executing this action/choice. |
| PARTY | TEXT | Party identifier representing a participant in the Canton network. Can be a validator, user, app provider, or other entity. |
| CHANGE_TO_HOLDING_FEES_RATE | TEXT | Numeric change to the holding fees rate for a party. |
| CHANGE_TO_INITIAL_AMOUNT | TEXT | Numeric change to a party’s initial amulet amount from a balance change operation. |
| AMULET_PRICE | TEXT | USD price of one amulet at the time of the event. |
| FACT_BALANCE_CHANGE_ID | TEXT | Surrogate key generated from event_id and party |
| INSERTED_TIMESTAMP | TEXT | Timestamp when the record was inserted into this table (Snowflake SYSDATE). |
| MODIFIED_TIMESTAMP | TEXT | Timestamp when the record was last modified in this table (Snowflake SYSDATE). |