Quickstart — Testnet in 5 Steps
Get your first Stacks dApp deployed to testnet in minutes. No Docker needed — contracts run on Hiro’s testnet infrastructure.1 — Install Scaffold Stacks
Install the CLI from Crates.io:2 — Scaffold a new project
Create your dApp project:- Clarinet configuration for contracts
- Next.js frontend with wallet integration
- Pre-configured settings for testnet/mainnet/devnet
3 — Get testnet STX
Get testnet tokens from the Hiro faucet:- Go to https://explorer.hiro.so/sandbox/faucet?chain=testnet
- Add your deployer mnemonic to
contracts/settings/Testnet.toml:
4 — Deploy to testnet
Deploy your contracts:- Generate a deployment plan
- Deploy to testnet
- Update
frontend/src/generated/deployments.jsonwith contract addresses
5 — Start the frontend
Launch the development server:Connect your wallet
Click Connect Wallet and connect Leather or Xverse set to Testnet. Every public function opens a wallet popup to sign and broadcast. Every read-only function calls the node directly — no wallet needed.Congratulations! You now have a live Stacks dApp on testnet. Explore the debug UI to interact with your contracts.
Next steps
Edit contracts
Modify your Clarity contracts and see live updates.
Add new contracts
Create additional contracts with templates.
Run tests
Test your contracts and frontend.
Deploy to mainnet
Launch your dApp on mainnet.