DAML By Example
Learn DAML smart contracts through practical, hands-on examples. A developer-focused guide to building on the Canton Network.
Basics
Core language concepts: types, functions, lists, and optional values.
Contracts
Templates, signatories, choices, and contract keys on the ledger.
Testing
Daml Script: writing tests, asserting failures, and querying ledger state.
Patterns
IOU, propose-accept, and escrow: real-world contract patterns.
Advanced
Interfaces for polymorphism and structured exception handling.
Finance
Tokens, bonds, fungible assets, and the DAML Finance library.