Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Which `--port` to use in `daml ledger upload-dar` with a canton ledger?Forum ↗

Which `--port` to use in `daml ledger upload-dar` with a canton ledger?

App Development5 posts197 viewsLast activity Apr 2022
ME
meschOP
Apr 2022

Specifically, daml ledger upload-dar takes the --port flag, and a canton ledger has at least 4 ports:

  • admin-api.port of the participant
  • ledger-api.port of the participant
  • public-api.port of the domain
  • admin-api.port of the domain

So which one would I upload dar files to?

CO
cocreature
Apr 2022

You need the ledger API port. so ledger-api.port.

ME
mesch
Apr 2022

Thank 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 2022

Yes, 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 2022

Thanks!

← Back to Discussions