Contents
- Install the CLI
- Scaffold a project
- Get testnet STX
- Deploy to testnet
- Start the frontend
- Connect your wallet
Install the CLI
Requires Clarinet 3.21+.Scaffold a project
- Clarinet configuration for contracts
- Next.js frontend with wallet integration
- Network settings for testnet, mainnet, and devnet
Get testnet STX
- Open the Hiro testnet faucet
- Add your deployer mnemonic to
contracts/settings/Testnet.toml:
Deploy to testnet
frontend/src/generated/deployments.json.
Start the frontend
Connect your wallet
Click Connect Wallet and connect Leather or Xverse set to Testnet.- Public functions open a wallet popup to sign and broadcast
- Read-only functions call the node directly (no wallet needed)
You now have a live Stacks dApp on testnet. Use the debug UI to interact with your contracts.
Next steps
Edit contracts
Modify Clarity contracts and see live updates.
Code generation
Bindings, hooks, watch mode, and ABI cache.
Run tests
Test contracts and frontend.
Local devnet
Docker chain with
dev --auto-deploy.