Clarinet Overview

Clarinet is a local development environment that offers everything you need to create, test, and deploy smart contracts on Stacks.

Using a simple command line interface, Clarinet enables you to build and iterate on your contracts locally before moving into production on the mainnet network.

You can code with Clarity syntax support, run tests, debug your code line by line, and deploy your contracts to a local Stacks blockchain environment to rapidly iterate on your code. It can also be used locally or as a hosted service in the cloud via the Hiro Platform.

To get started, check out our Installation Guide.

Guides

Network types

Clarinet supports different network types to cater to various development and testing needs:

NetworkDescriptionUse case
simnetOptimized for fast feedback loops, introspection, and portability.Ideal for initial development and unit-testing.
devnetLocal Stacks and Bitcoin nodes running on Docker for faster feedback loops.Use for integration tests or local frontend development.
testnetA pre-production network that offers a realistic environment for testing.Ideal for final testing before deploying to Mainnet.
mainnetThe production network where real transactions occur.Use when you're ready to deploy your smart contract to production.
  • Clarinet JS SDK: Simplify your testing with the Clarinet SDK.
  • Hiro Platform: Streamline your app development in our hosted dev experience.
  • Stacks.js: Leverage a JavaScript library that handles basic functions, such as user authentication and transaction signing.

Need help building with Clarinet? Reach out to us on the #clarinet channel on Discord under Hiro Developer Tools section. We also host a weekly office hours on Discord every Monday at 11am ET.

Last updated on