Skip to content
Discussions/App Development/How can I make a contract visible for every party that has a specific Role on DamlHubForum ↗

How can I make a contract visible for every party that has a specific Role on DamlHub

App Development6 posts217 viewsLast activity Jul 2023
CO
cohen.avrahamOP
May 2023

G-d willing

Hello,
I would like to create a contract that defines a bid, and I want the bid to be visible to every party that registered on my application as a bidder.
To do that, on my local sandbox, I created a “public” party and made this public party an observer to the bid template. And every new party that I added to the system was defined with the createUser command, and I set it with the readAs public.
How can I do the same on DamlHub?

Thanks,

A_
a_putkov
Jun 2023

Daml Hub automatically allocates Public party for every Daml Hub ledger. Once you’ve created a ledger for your app on Daml Hub, you can grab the Party Id and JWT for Public party from Daml Hub Console (see https://hub.daml.com/docs/quickstart/#identities-tab) or using REST API (see https://hub.daml.com/docs/api/#tag/Default-Parties).

DA
Daniel_Porter
Jun 2023

In addition to @a_putkov’s suggestion, we’re also adding support for the user management API to Daml Hub, hoping to have it out by early August. At that point, you’ll be able to do approximately the same thing you’re doing on sandbox on Hub.

CO
cohen.avraham
Jul 2023

That was exactly what I am looking for.
So, I assume I will be waiting until August :+1:

Thanks

DA
Daniel_Porter
Jul 2023

@cohen.avraham update on this - there’s been some schedule rejiggering and it looks more like end of August than beginning of August - I’ll post on this thread when it goes out the door.

CO
cohen.avraham
Jul 2023

G-d willing

Thanks for the update on this.

← Back to Discussions