# Canton: how to set participant's ledger id

**URL:** <https://forum.canton.network/t/canton-how-to-set-participants-ledger-id/3891>\
**Category:** App Development\
**Created:** [February 10, 2022, 3:01pm UTC](https://forum.canton.network/t/canton-how-to-set-participants-ledger-id/3891 "2022-02-10T15:01:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rafael\_Guglielmetti](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/rafael_guglielmetti/32/1897_2.png) [@Rafael\_Guglielmetti](https://forum.canton.network/u/Rafael_Guglielmetti)\
**Post date:** [February 10, 2022, 3:34pm UTC](https://forum.canton.network/t/canton-how-to-set-participants-ledger-id/3891/2 "2022-02-10T15:34:21Z")

</div>

Hi @Daniel_Porter ,  
The ledgerId is read from config and used as part of the initialization of the participant node when it starts (the two ways you mention are in fact the same one: the config populates the value in `CantonLedgerApiServerWrapper.Config.ledgerId`). Currently, there is no way to change the value once the participant is running.

Maybe what you could do is to pass the config value via the command line?

Cheers,

Raf

---

_[View the full topic](https://forum.canton.network/t/canton-how-to-set-participants-ledger-id/3891)._
