Reference
Core
Clarity

Clarity

Clarity is a new language that brings smart contracts to Bitcoin. It is a decidable language, meaning you can know, with certainty, from the code itself what the program will do. Clarity is interpreted (not compiled) & the source code is published on the blockchain. Clarity gives developers a safe way to build complex smart contracts. The Clarity open-source project is supported by the Stacks ecosystem, Hiro PBC, & Algorand.

These docs will go over:

  • What are the values and types in Clarity?
  • How do I interact with Clarity in javascript?
  • Where can I learn more about writing Clarity smart contracts?

Clarity values

Having a strong understanding of Clarity values and the type system is important.

Read more about Clarity values.

Working with Clarity in javascript

After learning about the type system and the different Clarity values, check out how to use them in the context of JavaScript.

Read about working with Clarity.

Learn more about clarity

There are many resources that are available to you if you're interested in learning more about how to write and use Clarity:

Last updated on July 13, 2022