Static damlhub ledger Id

Is there a way to setup a static ledger id on damlhub? Just for development purposes and QA testing not for continuous production deployment. Just so our team won’t have to re-deploy every now and then and have a different ledger id and subdomain. From what we understand so far, we can continuously re-deploy UI only changes, we are wondering if there’s a way we can do that with .dar files as well or something like this is only available on the enterprise version.

kind regards.

Ledger IDs are not “reusable” because most clients that connect to a ledger wouldn’t be able to sensibly handle what happens if a ledger returns a state inconsistent with what it has observed in the past (a ledger offset seemingly going backwards, contracts appearing or disappearing without corresponding events, etc).

That being said, the “enterprise” versions of Daml Hub allow you to have custom subdomains (my-cool-thing.daml.app), and you’d be able to have a stable endpoint to hit. However, you’d still need to recreate the ledger from scratch in order to not have prior .dar files pollute your ledger, as there is currently no way to remove a .dar from a Daml Hub ledger once it has been uploaded.

1 Like

Thank you for clearing this out. We appreciate the explanation. Cheers!