Start Building

Design a Daml workflow, test its contracts, and connect the rest of your Canton application.

New to Canton or blockchain? Start with Learn to understand the fundamentals. If you are exploring Canton as an investor or trader, Learn is also the place to begin.

Choose Your Path

Developer Fundamentals

Daml Overview

Daml is a programming language for applications shared by multiple parties.

You use it to define the data, permissions and actions in a business workflow.

A template defines a type of contract. A choice defines an action someone can take on a contract. Canton runs these models and enforces their rules across participating nodes.

Canton Architecture

Participant nodes host parties, store the data visible to them, and validate transactions.

On the Global Synchronizer, a validator node includes a participant and supporting services.

A synchronizer coordinates transaction messages and confirmations between participants. It handles encrypted transaction views rather than receiving readable business payloads.

Contracts and the Ledger Model

A contract is an instance of a template with specific data, such as the provider, customer and product.

Active contracts represent the current ledger state.

Contract data is immutable. A transaction changes the active contract set by creating or archiving contracts. A consuming choice archives its contract; a nonconsuming choice does not archive it automatically.

Parties, Authorization and Visibility

A party is an identity that can act on the ledger.

Model the participants and their permissions before writing the workflow.

Signatories authorize contract creation. Controllers authorize the exercise of a choice. Observers can see a contract without gaining authority to exercise its choices.

Visibility also depends on the transaction context. Check what each party can see across the whole workflow, including the consequences of exercising a choice.

The Rest of Your Application

The Daml model defines shared business rules.

Your frontend presents the workflow, while application services handle authentication and integration with other systems.

In a backend-mediated application, the backend submits commands and reads ledger updates through the Ledger API. The participant validates those commands against the Daml model.

The Development Workflow

Start with the parties, data and actions your application needs.

Build the contract model, then test successful actions, rejected actions and boundary cases with Daml Script.

Connect your application services after the model works. Use LocalNet to test the integrated application with local network services before moving to a shared environment.

Developer Tools

Keep Building

Find a walkthrough or example in Resources. For technical questions, visit Developer Support.