Prerequisites
- Node.js 20+ and npm 10+
- Git
- Lace wallet extension, set to Preprod
- Free Blockfrost project id (Preprod network)
- (Optional) OpenAI API key if you want the AI agent panel
1. Clone the repo and install
charli3-js from npm, so there is no SDK build step.
2. Generate the demo wallet and contract address
wallet address : addr_test1...) — you will paste it into the faucet next. The seed is saved to demo-nextjs/.wallet.seed (gitignored).
The output lines that start with
script address : and wallet address : are printed output, not commands to run.3. Fund the demo wallet
Go to the Cardano preprod faucet, paste thewallet address from step 2, and send 10 000 tADA. This wallet pays for Round 2 refreshes on the server. Your own Lace wallet is separate.
4. Set the env
Createdemo-nextjs/.env.local with your Blockfrost id (and optionally your OpenAI key):
5. Run it
What to click first
- Scroll to Run the loop, click Connect Lace, then Deposit 3 tADA.
- Click Refresh oracle price. The server pays the fee with the demo seed from step 2.
- Click Claim locked tADA. The Aiken validator releases the deposit because the price cleared the threshold.
- Scroll to AI agent, drop the sample invoice, and sign the payment with Lace.
Troubleshooting
`next: command not found` when I run npm run dev
`next: command not found` when I run npm run dev
You’re in
demo-nextjs/ but never ran npm install there. Run it, then npm run dev again.`Missing script: setup` or `Missing script: dev`
`Missing script: setup` or `Missing script: dev`
These scripts live in
demo-nextjs/package.json, not the repo root. cd demo-nextjs first.`zsh: command not found: script` or `: wallet`
`zsh: command not found: script` or `: wallet`
You pasted the example output of step 2 as commands.
script address : and wallet address : are printed, not run.Hero price shows --
Hero price shows --
Kupo endpoint hiccup. Retry the page.
`Lace is on network 1, switch to preprod`
`Lace is on network 1, switch to preprod`
Open Lace, Settings, Network, switch to Preprod Testnet, reconnect.
Refresh button stuck on `Building tx`
Refresh button stuck on `Building tx`
`script artifacts unavailable` or `Cannot convert undefined to a BigInt`
`script artifacts unavailable` or `Cannot convert undefined to a BigInt`
Next
Walkthrough
Guided tour of every panel in the UI.
How the SDK works
Round 1 / Round 2, IQR consensus, datum layout.