Query party IDs for login screen

I use Canton and DAML UI template for a demo application. Party IDs are very long and change from one Canton start to the next.

I would like to query the party IDs on the login screen before logging in and present a list/menu to the user. Is this possible? If yes, how?


If you run a JSON API service you can use the v1/parties endpoint to query all known parties (see the docs here). You’d need a token with an admin claim though if I remember correctly, but I suppose for a demo you could provide that.