Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/How to supply hint when allocating party via daml ledger command?Forum ↗

How to supply hint when allocating party via daml ledger command?

App Development3 posts740 views6 likesLast activity Apr 2020
DA
danielOP
Apr 2020

When allocating parties via daml ledger comamnd, is it possible to supply the party_id_hint?

CO
cocreature
Apr 2020

Hi @daniel, daml ledger allocate-party foobar will send a request with both display_name and party_id_hint set to foobar. At the moment it is not possible to set different display names and party id hints. Does that work for you? If required, we could definitely make this more flexible!

Another option would be to allocate the party using the allocatePartyWithHint function from DAML Script. That lets you set both the display name and the party id hint.

DA
daniel
Apr 2020

@cocreature No problem.
Was just looking for a shortcut (instead of going through grpc API) to play with party mgmt.
seems DAML Script might also be a good option to interact with the ledger. good stuff.

Thank you

← Back to Discussions