Transaction Simulation, Cost Estimation & .simrun Viewer (oltenrs simulate)
Dry-run Daml transactions locally before submitting them to the network—previewing execution outcomes, traffic byte costs, synchronizer limits, authorization failures, and party-level visibility graphs without modifying ledger state.
Why Simulate Before Submitting?
On Canton Network, authorization gaps, archived contract references, oversized request batches (max_request_size), or insufficient traffic balance often surface only after a failed TestNet submission. Sub-transaction privacy adds another layer of complexity: verifying exactly which party sees each sub-event—and why—is hard to audit from Daml source alone.
Five-Stage Simulation Pipeline
Each simulate invocation resolves the target participant, executes a dry-run rollback, computes traffic costs and limits, collects optional traces, and writes an immutable report bundle.
Dry-Run, CEK Tracing (--trace) & Snapshot Forking (--from-snapshot)
Use --name to dry-run a single command against a live local instance, or pass --from-snapshot <SNAP> to test multi-step 'what-if' sequences in complete isolation.
Immutable .simrun Records, Regression Rerun & Offline Viewers
Each .simrun bundle stores manifest.json, input.json, report.json, optional trace.json and visibility.json, and SHA256SUMS (0700 dir, 0600 files). If even one byte is altered, simulate show and simulate rerun fail immediately with exit code 3.
Switch language (KO) · LLMs.txt · oltenrs Home