Preflight — local Midnight stack
Runs four browser-side probes against your machine's Midnight standalone stack. All four must be green before VITE_NETWORK_ID=undeployed deploys or the Choreo Ledger demo will work.
start / restart stack
Requires Docker Desktop (macOS/Windows) or Docker Engine (Linux) running.
bun scripts/midnight-standalone.mjs up
Then click Re-run all below. First run pulls ~1 GB of images and takes 2–5 minutes.
Lace wallet
Lace connector not detected in this browser. Install/enable the Midnight-enabled Lace extension, then point it at ws://localhost:9944.
Lovable env secrets
VITE_NETWORK_ID=undeployed VITE_INDEXER_URL=http://localhost:8088/api/v4/graphql VITE_INDEXER_WS_URL=ws://localhost:8088/api/v4/graphql/ws VITE_NODE_RPC=ws://localhost:9944 VITE_PROOF_SERVER_URL=http://localhost:6300
deploy contract
VITE_NETWORK_ID=undeployed bun scripts/deploy-midnight.mjs
Paste the printed hex address into VITE_DEFAULT_CONTRACT.
local endpoints
node · ws://localhost:9944
indexer · http://localhost:8088/api/v4/graphql
proof · http://localhost:6300/health