Skip to main content

Getting Started

Quick start​

  1. Add the component to daml.yaml.
  2. Run dpm install package from the directory containing daml.yaml.
  3. Create canton-profiler.config.js in the project root.
  4. Set a JWT source in config, or pass --token for one-off runs.
  5. Run inspect --quick to confirm connectivity.
  6. Run estimate on a command JSON file before submitting to the ledger.
export MY_JWT_TOKEN='your-jwt'
dpm canton-profiler inspect --quick --network testnet
dpm canton-profiler estimate ./my-command.json --network testnet
dpm canton-profiler estimate ./my-command.json --network testnet --json --fail-on-error

Install​

Add the profiler as a DPM component. When using components:, do not also specify sdk-version in the same daml.yaml or multi-package.yaml.

# daml.yaml
name: my-project
source: daml
version: 0.1.0
dependencies:
- daml-prim
- daml-stdlib
components:
- oci://REGISTRY/PATH/canton-profiler:VERSION
dpm install package
dpm canton-profiler --help
dpm canton-profiler estimate --help