Skip to content
Discussions/App Development/Programatically register Participant to a domainForum ↗

Programatically register Participant to a domain

App Development5 posts259 views1 likesLast activity Jul 2022
KR
krishnan.narayananOP
Jul 2022

I am running a multi-domain setup and I am trying to register a participant node to domain programatically using the Canton Admin API. Are there any examples or java bindings to connect to the Domain’s Admin API?

Are the Protos for Domain Connectivity Service packaged as part of the release?

https://docs.daml.com/canton/usermanual/administration.html#domain-connectivity-service

ST
stefanobaghino-da
Jul 2022

The Java bindings are built around the Ledger API. All Canton-specific APIs (including the Domain Admin API) are not covered by it.

BE
bernhard
Jul 2022

Hi @krishnan.narayanan , you can download the service protos here. As @stefanobaghino-da said, they are not yet integrated in the Java bindings, but you can use the standard protobuf tooling to compile Java service clients for the Admin services and then access the domain connectivity service programmatically.

KR
krishnan.narayanan
Jul 2022

Thanks @bernhard and @stefanobaghino-da . I managed to collect all the protos. The service protos have dependencies via imports from other locations e.g.

import “com/digitalasset/canton/time/admin/v0/time_tracker_config.proto”;
import “com/digitalasset/canton/protocol/v0/sequencing.proto”;

It would be good to have it all shipped as part of release artefacts.

BE
bernhard
Jul 2022

Yes, for sure, I already raised a ticket to include the protos in the releases in the future.

← Back to Discussions