Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Participants in participants.jsonForum ↗

Participants in participants.json

App Development2 posts374 views4 likesLast activity Feb 2021
LE
Leonid_RozenbergOP
Feb 2021

In the participants.json file specified for describing roles and their access tokens for Daml Script, there is a default_participant specified. Under what cases is this user used within a script? What are good defaults for this user?

CO
cocreature
Feb 2021

There are two cases where the default participant will be used:

  1. You perform a per-party operation (e.g., submit, query, …) and there is no party → participant mapping in participant config for this party.
  2. You perform a per-participant operation and you did not specify a participant (allocateParty) or you specified a participant (allocatePartyOn) but you did not specify that participant name in your participant config.

There is also a third option here combining the two: you perform a per-party operation and there is a party → participant mapping but the participant name you’re mapping to is not in your participant config.

Now all of that might sound a bit convoluted so let me try to summarize it: The default participant as a fallback whenever no other participant has been specified directly or indirectly (via a party → participant mapping).

← Back to Discussions