Which `--port` to use in `daml ledger upload-dar` with a canton ledger?
App Development5 posts197 viewsLast activity Apr 2022
ME
meschOP
Apr 2022Specifically, daml ledger upload-dar takes the --port flag, and a canton ledger has at least 4 ports:
-
admin-api.portof the participant -
ledger-api.portof the participant -
public-api.portof the domain -
admin-api.portof the domain
So which one would I upload dar files to?
CO
cocreature
Apr 2022You need the ledger API port. so ledger-api.port.
ME
mesch
Apr 2022Thank you so much!
Same question for the --ledger_port flag of daml script. I assume that’s also ledger-api.port, right?
Thanks again,
mesch.
CO
cocreature
Apr 2022Yes, in general any generic ledger tooling (all daml ledger commands, daml script, triggers, json api, …) always talks to the ledger API port. Only once you get to the Canton console or other canton specific stuff do you have to worry about the other ports.
ME
mesch
Apr 2022Thanks!