canton-network-docs
How to allocate and query Daml parties
How to allocate and query Daml parties - Canton Network Docs
Skip to main content
Alternatively, enable the JSON Ledger API in the Canton config file. The Canton community installation contains an example under examples/09-json-api.
Start the Canton Participant Node and connect it to the Synchronizer. If you are unfamiliar with the procedure, follow the steps described in :externalref:‘the getting started tutorial <connecting-the-nodes>’.
The participant responds with a message containing all the known parties
The
The resulting party id is composed of the supplied
If you omit the
Documentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
How to allocate and query Daml parties
Canton Participant Node exposes a party management service that allows creation and discovery of the Daml parties. This guide explains how to programmatically manipulate the parties using the JSON Ledger API, which is described using OpenAPI specifications. To learn about the Daml parties and users, see :brokenref:‘Daml parties and users’ in the key concepts section. Refer to the party management section in the operational guide to learn how the parties can be created using the Canton console.Start Canton Participant Node
Ensure that your Canton Participant Node opens a JSON Ledger API HTTP port by adding a flag to the Canton Participant startupHow to query for existing parties
To list all parties known to the participant, issue a GET request towards thev2/parties endpoint.
isLocal attribute is set to true if the participant hosts the party and the party shares the same identity provider as the user issuing the request.
How to create a new local party
To create a new party, issue a POST request towards thev2/parties endpoint.
partyIdHint and the namespace fingerprint of the entity overseeing that party. Typically, it is the fingerprint associated with the Canton Participant Node.
partIdHint in your request, the Participant Node selects a random hint string.