✨ Get started with Clarity: Write your First Smart Contract on Stacks


Finalize the web3 app

Apr 8, 2022 in Build a web3 application on Stacks

Write some more Clarity and use unvote and revote public functions

Send transactions to the smart contract

Apr 5, 2022 in Build a web3 application on Stacks

Call public functions to cast a vote and write data on the Stacks blockchain. Fetch transactions data

Call the voting smart contract

Mar 30, 2022 in Build a web3 application on Stacks

Call read-only functions on the and interact with the Stacks API

Set up the web app and authenticate with a wallet

Mar 29, 2022 in Build a web3 application on Stacks

Build a Web3 application with Stacks and authenticate with our web Wallet

Update or cancel a vote

Mar 17, 2022 in Implementing a voting system

Use Clarity map-set and map-delete to edit or delete vote. Optimize costs with clarinet

Get the elected color

Mar 11, 2022 in Implementing a voting system

Add read-only functions to get candidates and elected with map and fold

Test our Smart Contract with Clarinet

Mar 10, 2022 in Implementing a voting system

Use clarinet to run automatic tests on our clarity smart contract

Implement the basic voting mechanism

Mar 9, 2022 in Implementing a voting system

Setup votes data structure and basic on-chain vote mechanism

Store data in maps

Mar 5, 2022 in Implementing a voting system

How to use Clarity maps to store and read data

Write your first Clarity Smart Contract

Mar 2, 2022 in Implementing a voting system

Initialize our first Clarity Smart Contract project with simple data and public functions

Iterate on lists

Feb 18, 2022 in Clarity language

Iterate with map(), filter() and fold()

Coding style

Feb 15, 2022 in Clarity annexes

Some rules applied the Clarity code of the snippets

Useful links

Feb 11, 2022 in Clarity annexes

Useful links about the Stacks and Clarity developer ecosystem