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

**URL:** <https://forum.canton.network/t/how-to-supply-hint-when-allocating-party-via-daml-ledger-command/93>\
**Category:** App Development\
**Tags:** daml, ledger\
**Created:** [April 9, 2020, 3:34am UTC](https://forum.canton.network/t/how-to-supply-hint-when-allocating-party-via-daml-ledger-command/93 "2020-04-09T03:34:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/daniel/32/80_2.png) [@daniel](https://forum.canton.network/u/daniel)\
**Post date:** [April 9, 2020, 3:34am UTC](https://forum.canton.network/t/how-to-supply-hint-when-allocating-party-via-daml-ledger-command/93/1 "2020-04-09T03:34:36Z")

</div>

When allocating parties via `daml ledger` comamnd, is it possible to supply the [party\_id\_hint](https://docs.daml.com/app-dev/grpc/proto-docs.html#allocatepartyrequest)?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [April 9, 2020, 5:12am UTC](https://forum.canton.network/t/how-to-supply-hint-when-allocating-party-via-daml-ledger-command/93/2 "2020-04-09T05:12:57Z")

</div>

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](https://docs.daml.com/daml-script/daml-script-docs.html#function-daml-script-allocatepartywithhint-99891) function from DAML Script. That lets you set both the display name and the party id hint.

---

<div class="post-metadata">

**Author:** ![daniel](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/daniel/32/80_2.png) [@daniel](https://forum.canton.network/u/daniel)\
**Post date:** [April 9, 2020, 6:44am UTC](https://forum.canton.network/t/how-to-supply-hint-when-allocating-party-via-daml-ledger-command/93/3 "2020-04-09T06:44:23Z")

</div>

@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
