7.2 Writing your first contract

Now that the project setup is complete, let's begin writing our first contract.

Please open the counter.clar file located in the contracts directory.

To store individual counter values, we will use a map. Maps are an excellent choice because they allow for data to be added as more principals call into the contract over time.

Last updated