Everything you need to build dApps on Canton

Wallet connection, transaction signing, party handling, React hooks and a UI kit, in a working application that runs from the first command. Ready for your AI coding assistant.

pnpm create canton-dappbooster my-dapp

Funded by the Canton Development Fund

Canton Core surrounded by orbiting stack components: DAR, CONNECT, STARTER dApp, dAppBooster, CIP-0103, BAREBONES. DAR CONNECT STARTER dApp dAppBooster CIP-0103 BAREBONES CANTON · CORE

Walkthrough

Write Daml, deploy it locally, connect a dApp, and approve a real Canton transaction in your wallet, all on your own machine.

Stack

  1. Starter dApp

    The default app the installer creates.

    The starter dApp is a small React app that connects a real wallet and shows the connected party. It comes with a sample Daml contract, so you start from a working app and edit it into your own.

  2. UI components and theme

    Reusable UI components for Canton dApps.

    The components cover common dApp tasks: a wallet connect button, a party ID input with validation, and a token amount field. Party IDs display short, and you can copy them or open them in an explorer.

    canton-theme styles them with plain CSS. One import in your style sheet applies the whole theme, including dark mode.

  3. Wallet hooks

    React hooks in the style of wagmi.

    Canton's dapp-sdk connects to wallets over a browser extension, WalletConnect or a remote gateway, but has no React layer. canton-connect adds one, with hooks like useAccount and useConnect that work like wagmi's.

  4. Local network

    Runs a local Canton network.

    The default config is the smallest stack that works: the Super Validator plus a headless app-user validator. Every UI and extra tool is off until you turn it on.

    • Splice LocalNet
    • Super Validator and global synchronizer
    • app-user and app-provider participants
    • Shared Postgres, Canton and nginx
    • JSON and gRPC Ledger APIs
    • Single JSON config file
    • Command-line tool: start, stop, reset, status, logs
    • Optional Scan, wallet and ANS UIs

With the current stack, a developer can

canton @ dappbooster :~ $ pnpm stack up

frontend

  • Create a project from the starter dApp or from an example.
  • Connect a CIP-0103 wallet over a browser extension, WalletConnect or a Wallet Gateway.
  • Run the app with a mock wallet before a real wallet is reachable.
  • Add a wallet button, a party ID input and a token amount field.
  • Shorten party IDs for display, copy them, and open them in an explorer.
  • Read the token holdings of the connected party.
  • Prepare, sign and execute Canton transactions, and follow each one from pending to executed.
  • Sign messages with the connected wallet.

local network

  • Run a local Canton participant and synchronizer.
  • Start or stop the LocalNet, Wallet Gateway and your dApp with one command.

10 ready (8 frontend, 2 local network)

Examples

Amulet Vesting

Grant Canton Coin that unlocks over time. Once the receiver accepts the grant, the coin goes into escrow and they claim it as it vests. Every step asks their wallet for approval.

Token Vesting

Grants and claims work as in Amulet Vesting, but the token is DBT, made with canton-token-forge. The contracts come prebuilt, so you can run it without Splice reference data or a Daml SDK.

Token Vault

Deposit a CIP-0056 token to get vault shares, and return the shares to get the token back. Any CIP-0103 browser wallet can connect. We built it on an earlier version of Canton dAppBooster.

Two starting points

Quickstart

The official Canton Network Quickstart is the reference setup for shipping a real app on the Global Synchronizer. It comes with Keycloak login over OIDC, a Spring Boot backend, PQS, an observability stack and more.

That helps when you want to learn the full production stack.

Canton dAppBooster

Canton dAppBooster solves a different problem. It gives one developer a Canton dApp that runs end to end on their own machine, from the contract to the wallet.

How a person reaches the ledger in each one

user

Quickstart

  1. log in
  2. Canton user
  3. party rights
  4. backend acts for the user

Canton dAppBooster

  1. wallet key
  2. external party
  3. cryptographic signature
  4. Canton transaction
the ledger

Canton dAppBooster simplifies the user layer during local development.

A developer can write Daml, deploy a DAR and run a real wallet approval flow without standing up Keycloak, a Spring Boot backend or PQS.

Open source and contribute

Built on dAppBooster for EVM.

The EVM-side dAppBooster has been shipping and improving with web3 builders for years. Canton dAppBooster comes from the same team and brings the same best practices and developer-experience lessons, adapted for the Canton ecosystem.

It is open source under the MIT License.

Frequently Asked Questions

An open-source stack for building Canton dApps on your own machine. Everything a dApp needs is already wired together, from the local Canton network up to the UI.