Ship to MainNet
Your app talks to a validator's participant node through the Ledger API on every network. What changes from LocalNet to MainNet is the infrastructure around it: identity, connectivity, Canton Coin, and how your DARs get deployed.
The Four Environments
| Environment | Purpose | Data and Funding |
|---|---|---|
| LocalNet | Local model and application integration | You control the local deployment; tokens and traffic are simulated |
| DevNet | Early shared-network integration and upgrade testing | Development data may be reset; use DevNet test tokens |
| TestNet | Pre-production and counterparty integration testing | Maintain a test instance; use TestNet tokens and plan for announced resets |
| MainNet | Production workflows | Production data and Canton Coin; fund and monitor traffic |
Choose an environment for the behavior you need to validate. The network guide describes their purposes; check operating notices before relying on test data continuity.
What Changes Between Environments
| Comparison | LocalNet | DevNet, TestNet and MainNet |
|---|---|---|
| Identity and authentication | A bundled Keycloak with default users | A validator onboarded to the network, and a valid JWT from the validator's auth provider |
| Connectivity | Everything on localhost | Your validator connects to the Global Synchronizer's sequencer nodes |
| Canton Coin and traffic | Simulated | Traffic uses the environment's Canton Coin: test-network tokens on DevNet and TestNet, production Canton Coin on MainNet |
| DAR deployment | Direct upload to the local validators | Upload through your validator's participant node, which may need coordination with counterparties |
Keep the business model consistent across environments. Configure target identities, endpoints, authentication and package deployment, then validate the network and operating requirements.
How Your App Reaches a Shared Network
Your application needs a participant that hosts its parties. Choose a validator service provider or operate a validator with responsibility for availability, upgrades and credentials.
The Canton Foundation validator directory describes provider options. Agree on operating responsibilities and access to your parties before selecting a service.
For a self-operated validator, follow the network-specific onboarding procedure. DevNet supports self-service onboarding after the required egress IP allowlisting. TestNet and MainNet require the documented approval and sponsor process.
Confirm the target network, allowed egress IP and package requirements before requesting an onboarding secret. Complete onboarding within that secret's validity period; request a replacement if it expires.
Use the current procedure for eligibility, secret lifetimes and deployment requirements. Allow time for approvals and allowlist adoption when planning an integration test.
Upgrades You Keep Up With
Plan for both application package upgrades and network infrastructure upgrades. They affect different parts of your system.
| Type | What Changes | What You Prepare |
|---|---|---|
| Type 1 | Compatible Splice or synchronization-layer changes | Keep supported validator software current and run regression tests |
| Type 2 | Splice Daml models | Confirm software and package readiness before the announced activation |
| Type 3 | Synchronization protocol through a Logical Synchronizer Upgrade | Coordinate the migration with node operators and dependent services |
Follow the validator upgrade procedure and check operating announcements for upcoming changes. Use DevNet and TestNet instances to exercise changes before MainNet.
Promotion Checklist
The docs' checklist for moving an app between environments, with a security checkpoint from Security at each step.
LocalNet to DevNet
- All Daml Script unit tests pass with
dpm test. - Backend integration tests pass against LocalNet.
- DARs compile cleanly with
dpm build. - Your validator is onboarded to DevNet.
- Authentication is configured for DevNet, with no default Keycloak users.
Security checkpoint: test permitted and rejected contract actions locally. Check the resulting amounts and remaining contracts before deploying to DevNet.
DevNet to TestNet
- End-to-end tests pass on DevNet with real multi-party workflows.
- Your application handles the scheduled Type 1 upgrades without breaking.
- Performance under expected load is acceptable.
- Your DAR deployment process is documented and tested.
- Monitoring and alerting are configured.
Security checkpoint: exercise multi-party workflows on DevNet, including response authorization and recovery after interrupted submissions, before promoting to TestNet.
TestNet to MainNet
- The full regression suite passes on TestNet.
- You have gone through at least one Type 1 upgrade cycle on TestNet.
- Operational runbooks exist for incident response.
- Canton Coin and traffic management is configured, with auto top-up and budget monitoring.
- Your organization has reviewed the DAR deployment coordination process with counterparties.
Security checkpoint: check package compatibility with dpm upgrade-check --compiler old.dar new.dar, then exercise existing contracts through the versions used during rollout. Review upgrade tests and external signing before release.
How the Docs Say to Test
- Unit test your Daml with Daml Script, covering every workflow and every dependency.
- Run integration tests in CI with mocked dependencies, against standalone Canton participants connected to a standalone synchronizer.
- Deploy a test instance on TestNet and integrate it with other apps' test instances. That covers infrastructure upgrades, your own version upgrades, and upgrades of the apps you depend on.
Official Deployment Checklist
Review the Canton Foundation deployment promotion checklist before changing environments.