# Programatically register Participant to a domain

**URL:** <https://forum.canton.network/t/programatically-register-participant-to-a-domain/4986>\
**Category:** App Development\
**Tags:** canton\
**Created:** [July 27, 2022, 3:47pm UTC](https://forum.canton.network/t/programatically-register-participant-to-a-domain/4986 "2022-07-27T15:47:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnan.narayanan](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@krishnan.narayanan](https://forum.canton.network/u/krishnan.narayanan)\
**Post date:** [July 27, 2022, 3:47pm UTC](https://forum.canton.network/t/programatically-register-participant-to-a-domain/4986/1 "2022-07-27T15:47:03Z")

</div>

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](https://docs.daml.com/canton/usermanual/administration.html#domain-connectivity-service)

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [July 28, 2022, 6:56am UTC](https://forum.canton.network/t/programatically-register-participant-to-a-domain/4986/2 "2022-07-28T06:56:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [July 28, 2022, 7:43am UTC](https://forum.canton.network/t/programatically-register-participant-to-a-domain/4986/3 "2022-07-28T07:43:48Z")

</div>

Hi @krishnan.narayanan , you can [download the service protos here](https://github.com/digital-asset/canton/tree/main/community/participant/src/main/protobuf/com/digitalasset/canton/participant/admin/v0). 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.

---

<div class="post-metadata">

**Author:** ![krishnan.narayanan](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@krishnan.narayanan](https://forum.canton.network/u/krishnan.narayanan)\
**Post date:** [July 28, 2022, 8:16am UTC](https://forum.canton.network/t/programatically-register-participant-to-a-domain/4986/4 "2022-07-28T08:16:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [July 28, 2022, 1:58pm UTC](https://forum.canton.network/t/programatically-register-participant-to-a-domain/4986/5 "2022-07-28T13:58:28Z")

</div>

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