Skip to main content
Schema: canton.core Table: fact_events Type: View

What

Description

Core fact table exposing all Canton events from the blockchain with pre-extracted fields for easy analysis. This is the most granular event-level table and serves as the foundation for understanding all Canton blockchain activity.

Key Use Cases

  • Analyzing complete event history and patterns
  • Joining to specialized fact tables for detailed analysis
  • Exploring contract lifecycle (creation, exercise, archival)
  • Understanding party interactions through acting_parties, signatories, and observers

Important Relationships

  • Source for all other event-based fact tables
  • Joins to core__fact_updates via update_id
  • Can be filtered by choice to find specific action types
  • Can be filtered by template_id to find specific contract types

Commonly-used Fields

  • event_id: Unique identifier for the event
  • event_index: Ordering of events within an update
  • choice: The action/method being executed (for exercised events)
  • event_type: created_event or exercised_event
  • effective_at: When the event occurred
  • contract_id: The contract being created or exercised
  • template_id: The contract template type

Columns

Column NameData TypeDescription
UPDATE_IDTEXTUPDATE_ID column
MIGRATION_IDNUMBERMIGRATION_ID column
RECORD_TIMETIMESTAMP_NTZRECORD_TIME column
EFFECTIVE_ATTIMESTAMP_NTZEFFECTIVE_AT column
EVENT_IDTEXTEVENT_ID column
EVENT_INDEXNUMBEREVENT_INDEX column
IS_ROOT_EVENTBOOLEANIS_ROOT_EVENT column
EVENT_TYPETEXTEVENT_TYPE column
CHOICETEXTCHOICE column
CONSUMINGBOOLEANCONSUMING column
CONTRACT_IDTEXTCONTRACT_ID column
TEMPLATE_IDTEXTTEMPLATE_ID column
PACKAGE_NAMETEXTPACKAGE_NAME column
INTERFACE_IDTEXTINTERFACE_ID column
ACTING_PARTIESVARIANTACTING_PARTIES column
SIGNATORIESVARIANTSIGNATORIES column
OBSERVERSVARIANTOBSERVERS column
CHILD_EVENT_IDSVARIANTCHILD_EVENT_IDS column
CREATED_ATTIMESTAMP_NTZCREATED_AT column
CHOICE_ARGUMENTVARIANTCHOICE_ARGUMENT column
EXERCISE_RESULTVARIANTEXERCISE_RESULT column
CREATE_ARGUMENTSVARIANTCREATE_ARGUMENTS column
EVENT_JSONVARIANTEVENT_JSON column
FACT_EVENT_IDTEXTFACT_EVENT_ID column
INSERTED_TIMESTAMPTIMESTAMP_NTZINSERTED_TIMESTAMP column
MODIFIED_TIMESTAMPTIMESTAMP_NTZMODIFIED_TIMESTAMP column