Skip to main content
All posts
Canton dAppBooster: from Daml contracts to a running dApp with one command

Canton dAppBooster: from Daml contracts to a running dApp with one command

Before you can write any actual business logic on Canton, you usually have to spin up a network and wire up a wallet. Canton dAppBooster handles that setup for you, so you can start building your own contracts right away.

BootNode

Published

Text size
Text size
Text size
Text size

Canton dAppBooster takes you from Daml contracts to a running dApp. One command sets up everything: the local network, the contract, the wallet and the dApp.

Key Takeaways

  • What it replaces: setting up a participant, a synchronizer, the JSON Ledger API, auth and a wallet by hand, and wiring them together, before you write any business logic.
  • What you get: a local network, React hooks over Digital Asset's dApp SDK, UI components and a starter dApp already connected to a wallet.

Before and after

Before: six steps by hand, from running a participant node to writing a frontend that reads the ledger. After: two commands, pnpm create and pnpm stack up, then you create a party in Wallet Gateway and click Connect wallet.

The problem

In the Canton Foundation's Q3 2026 developer survey (November 2026), 40% of respondents raised node setup as a pain point, and it was the area whose rating dropped the most.

The frontend is the second wall. 79% of the same respondents have built on Ethereum, where connecting a dApp to a wallet takes a few lines of wagmi. On Canton the wallet standard is CIP-0103, and the React layer on top of it is yours to build.

The solution

pnpm create canton-dappbooster gives you a project with the pieces already wired together: a Daml contract, React hooks over the dApp SDK, UI components and a starter dApp connected to a wallet.

pnpm stack up starts the local network, builds and deploys the contract, then starts Wallet Gateway and the dApp.

You start from a dApp that works and change it, instead of assembling one from parts.

Try it yourself

You need:

  • Node 24.15.0 or newer
  • pnpm
  • Docker, running
  • dpm (Daml SDK 3.5.2)
  1. Create the project.

    pnpm create canton-dappbooster my-first-app
    

    The installer asks two questions: which local network (pick Barebones) and which dApp (pick Starter dApp).

  2. Start the stack.

    cd my-first-app
    pnpm stack up
    

    This builds the sample contract and deploys it to LocalNet, starts Wallet Gateway at http://localhost:3030 and the dApp at http://localhost:3012. The first run downloads the Docker images for the full Canton stack (about 10 GB), but in normal conditions going from pnpm create to a connected dApp should take about 10 minutes or less.

  3. Create a party (optional). LocalNet already comes with a party, app_user_cantonBarebones-localparty-1, set as primary. To use your own instead, open http://localhost:3030, log in with unsafe as the client secret, create a party with wallet-kernel as the signing provider and tick Set as primary wallet.

  4. Connect. Open http://localhost:3012 and click Connect wallet. The wallet picker opens in a floating window. Choose Wallet Gateway and log in with unsafe. Back in the dApp tab, you should see your primary party.

  5. Change something.

    a. The frontend is in src/, starting with src/App.tsx, and reloads as you save.

    b. The contract is in daml/Main.daml. After changing it, raise the version in daml/daml.yaml (from 0.1.0 to 0.1.1, for example) and redeploy:

    pnpm build-dar
    pnpm deploy-dar -- daml/.daml/dist/starter-0.1.1.dar
    

When you are done, use pnpm stack down to stop everything.

What's in the box

PieceWhat it does
create-canton-dappboosterThe installer behind pnpm create canton-dappbooster. Scaffolds the starter or an example, with or without the local network.
@bootnodedev/canton-barebonesStarts a local Canton network. A thin wrapper over Splice LocalNet.
@bootnodedev/canton-connectwagmi-style React hooks over Digital Asset's dApp SDK.
@bootnodedev/canton-dappboosterHeadless UI components.
@bootnodedev/canton-themeA plain CSS theme for the components.
Starter dAppA React app that connects a wallet and ships a sample Daml contract.

How it works

Canton dAppBooster uses the existing Canton stack:

dApp (localhost:3012)
  ↕ CIP-0103
Wallet Gateway (localhost:3030): holds your party's key
  ↓ signs, then submits to the participant
Splice LocalNet: app-user participant ↔ sv (synchronizer)
  • The hooks in canton-connect wrap Digital Asset's dApp SDK.
  • The dApp talks to wallets through CIP-0103. In the starter that wallet is Wallet Gateway, which the dApp reaches at a URL instead of through a browser extension. It holds your party's key, signs, and submits to the participant.
  • The local network is Splice LocalNet, run by canton-barebones.

If you know Ethereum, the API will feel familiar: CIP-0103's provider methods are an exact copy of EIP-1193's, and the hooks follow wagmi's shape. Coming from wagmi maps one to the other.

pnpm stack up also handles Splice upgrades. When your project moves to a newer Splice release, it upgrades the ledger in place, and your parties and contracts stay where you left them. pnpm stack reset gives you a blank ledger when you want one.

The full design is in architecture.md.

Start from an example

Each example is a full dApp you can build on: Daml contracts, a React frontend and the scripts that set up the ledger for it.

All four examples have a faucet available in their account menu, so you can fund your party without leaving the dApp.

ExampleHow you pick itWhat it does
Amulet Vesting--example amulet-vestingVests Canton Coin from one party to another through a CIP-0103 wallet. Hosted demo at demo.dappbooster.cc
Wallet-less Amulet Vesting--example amulet-vesting-walletlessThe same dApp with username and password accounts instead of a wallet
Token Vesting--example token-vestingThe vesting dApp over DBT, a canton-token-forge token, with its registry
Token Vault--example token-vaultTakes USDX deposits for VSH vault shares, and pays USDX back for shares

For example:

pnpm create canton-dappbooster my-vault --example token-vault --localnet
cd my-vault && pnpm stack up

Where it fits

  • cn-quickstart (Digital Asset): scaffolding for a full Canton Network application, with a Daml model, a Java backend and a React frontend, that you clone and adapt (per its README, November 2026).
  • Canton dAppBooster: the local network, React hooks, components, a theme, a starter dApp and examples. Start here when you want to go from Daml contracts to a working frontend fast.

Who this is for: frontend and full-stack developers starting a Canton dApp, especially if you come from EVM. If you need a backend from day one, start with cn-quickstart.

What this gives teams

  • A first working dApp in 10 minutes or less. One command and a party, and you are connected to a local ledger.
  • A frontend that already speaks CIP-0103. You write your app, not the wallet plumbing.
  • A ledger that survives upgrades. Moving to a new Splice release no longer means wiping your local state.
  • Examples close to real use cases. Vesting, a token vault and sign-in without a wallet, ready to build on.
  • An agent-ready codebase. Every package and example ships with instructions for AI coding agents, and every docs page is ready to paste into your assistant.

To start with an AI assistant, use this:

I'm building a Canton dApp with Canton dAppBooster (https://docs.dappbooster.cc).
Create a project with `pnpm create canton-dappbooster my-app --localnet`,
start it with `pnpm stack up`, then help me turn the starter into: <describe your app>.

Limitations

  • The local network is for development. canton-barebones runs Splice LocalNet on your machine. The React packages (canton-connect, the components and the theme) can go into a production dApp, but they have not been audited.
  • The wallet-less example is custodial. The participant signs for every account, so whoever runs the server and the participant holds everyone's Canton Coin.
  • The Mock Wallet only connects. It shows a party but fails on anything else. Use Wallet Gateway to sign or write.
  • LocalNet keeps its packages between runs, even across projects. Uploading a changed DAR with the same name and version fails. Raise version in daml/daml.yaml, or start over with pnpm stack reset.
  • The first run is heavy. It downloads about 10 GB of images.

Docs and links

About

Canton dAppBooster is funded by the Canton Development Fund. It is built by BootNode, a software engineering firm that builds blockchain products and developer tooling, and core contributors to Safe, Hyperlane, Derive and Gnosis Chain.

The story behind it: From Daml contract to running dApp on your laptop.

A planet growing the Web3 ecosystem

Talk to us

Tell us what you are building and where it runs.