Skip to content
CCPEDIAby Unity Nodes
App Development

Programatically register Participant to a domain

5 posts295 views1 likesLast activity Jul 2022

  1. krishnan.narayananOP

    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

  2. stefanobaghino-da

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

  3. bernhard

    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.

  4. krishnan.narayanan 1

    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.

  5. bernhard

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