Contracts
The contracts command lists active contracts through the JSON API.
List Contracts​
dpm canton-deploy contracts --network localnet
Filter by Party​
dpm canton-deploy contracts --network localnet --party 'Alice::1220...'
Filter by Template​
dpm canton-deploy contracts --network localnet --party 'Alice::1220...' --template '#my-package:Module:Template'
important
The --template value uses:
#<package-name>:Module:Template
from daml.yaml.
It is not the hexadecimal package ID returned by deployment.
The JWT user needs CanReadAs for the party supplied with --party.
JSON API​
The JSON API is used for contract inspection.
If Admin and Ledger APIs are reachable but the JSON API is unavailable, package upload can still succeed. Fix httpPort, httpHost, or httpUseTls for contracts and a full status.