Build a dapp on Chia
Every DIG primitive is documented on its own — scaffolding, the in-page wallet, the read path, spends, deploy. This page is the single thread that ties them together into one shipped dapp. You'll start from an empty folder and finish with a wallet-aware React app, live on-chain at your own domain.
The whole loop up to publishing is free — scaffold, develop, and preview cost nothing. You spend a flat 100 DIG only at the deploy step.
new ──▶ dev ──▶ wire wallet (dig-sdk) ──▶ build a spend (chip35) ──▶ deploy ──▶ custom domain
free free free free 100 DIG free
What you'll need
- The
digstoreCLI installed. - Node 18+ and
npm. - A funded Chia wallet — only at the deploy step (100 DIG + a small XCH fee). Everything before that is free.
1. Scaffold a React app — free, no chain
digstore new writes a runnable, wallet-wired project. Pick the React template:
digstore new vite-react my-dapp
cd my-dapp
You get a Vite + React app, a dig.toml (output-dir = "dist", build-command = "npm install && npm run build"), and an App.jsx already wired to the in-page wallet. No store is minted and nothing is spent — new is purely local.
npm create dig-appnpm create dig-app@latest my-dapp -- --template vite-react scaffolds the same template straight from npm — the JS front door, no digstore install needed to start. See Scaffold an app for all five templates and how the two front doors compare.