Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/How to host a party into multiple participant nodes using daml scriptForum ↗

How to host a party into multiple participant nodes using daml script

App Development2 posts243 views1 likesLast activity May 2022
DO
Dorrit_DuOP
May 2022

Hi team,

Is there any way I can allocate a party into multiple participant nodes by using daml script?

currently, I am using ParticipantName at my script to specify which participant node does the party allocate to but it seems ParticipantName just able to pass in Text but not list. is there any way I can allocate party(e.g. public) to two participants nodes?
Example of Party allocation at script
public <- allocatePartyWithHintOn "Public" (PartyIdHint "Public") ( ParticipantName "pOperator")

I have read the below approach which is done on canton console but my script relying on the public party so ideally will be done in Script level.

For multiple node setups how do we assign a party to multiple nodes via the “–participant-config participants.json” flag in daml script. We will have a “Public” party that lives on every node. Could it also be clarified how “participant” maps back to a canton user for createUser & allocatePartyWithHintOn End goal is something like: Node 1 alice → Alice, Public Node 2 bob → Bob, Public

Thanks in advanced!

Cheers,
Dorrit

SO
soren
May 2022

Hi Dorrit,

I am afraid if you want to allocate the same party on multiple participant nodes you won’t be able to do it from daml script, but you need to use the canton console for that.

← Back to Discussions