Skip to main content
Deploy your first Stacks dApp to testnet in minutes. No Docker required. Contracts run on Hiro testnet infrastructure.

Contents

Install the CLI

Requires Clarinet 3.21+.
Or build from source:

Scaffold a project

This creates:
  • Clarinet configuration for contracts
  • Next.js frontend with wallet integration
  • Network settings for testnet, mainnet, and devnet

Get testnet STX

  1. Open the Hiro testnet faucet
  2. Add your deployer mnemonic to contracts/settings/Testnet.toml:

Deploy to testnet

Preview without broadcasting:
Deploy a single contract:
This generates a deployment plan, submits transactions, and writes addresses to frontend/src/generated/deployments.json.

Start the frontend

Opens http://localhost:3000. The Debug Contracts panel lists every contract function with typed inputs.

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.