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

EnvironmentPurposeData and Funding
LocalNetLocal model and application integrationYou control the local deployment; tokens and traffic are simulated
DevNetEarly shared-network integration and upgrade testingDevelopment data may be reset; use DevNet test tokens
TestNetPre-production and counterparty integration testingMaintain a test instance; use TestNet tokens and plan for announced resets
MainNetProduction workflowsProduction 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

ComparisonLocalNetDevNet, TestNet and MainNet
Identity and authenticationA bundled Keycloak with default usersA validator onboarded to the network, and a valid JWT from the validator's auth provider
ConnectivityEverything on localhostYour validator connects to the Global Synchronizer's sequencer nodes
Canton Coin and trafficSimulatedTraffic uses the environment's Canton Coin: test-network tokens on DevNet and TestNet, production Canton Coin on MainNet
DAR deploymentDirect upload to the local validatorsUpload 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.

TypeWhat ChangesWhat You Prepare
Type 1Compatible Splice or synchronization-layer changesKeep supported validator software current and run regression tests
Type 2Splice Daml modelsConfirm software and package readiness before the announced activation
Type 3Synchronization protocol through a Logical Synchronizer UpgradeCoordinate 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

  1. Unit test your Daml with Daml Script, covering every workflow and every dependency.
  2. Run integration tests in CI with mocked dependencies, against standalone Canton participants connected to a standalone synchronizer.
  3. 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.