Getting Started
Quick start​
- Add the component to
daml.yaml. - Run
dpm install packagefrom the directory containingdaml.yaml. - Create
canton-profiler.config.jsin the project root. - Set a JWT source in config, or pass
--tokenfor one-off runs. - Run
inspect --quickto confirm connectivity. - Run
estimateon 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