jotterai
A simple smart contract that counts — increment, decrement, and store numbers securely on the blockchain.
Description
The Counter Smart Contract is a foundational Solidity project that demonstrates how smart contracts store and modify data on the blockchain.
It features a simple numerical counter that can be incremented or decremented through public functions. The current value is stored permanently on-chain, ensuring transparency and immutability.
This project serves as a hands-on example for beginners to understand state variables, function visibility, and transaction-based updates in Ethereum smart contracts. It’s an essential step for anyone starting their journey in blockchain development.
Progress During Hackathon
During the development of the Counter Smart Contract, I learned the step-by-step process of writing, compiling, and deploying a Solidity contract on Remix IDE. Initially, I started with understanding state variables and how data is stored permanently on the blockchain. Then I implemented the basic logic for increment and decrement functions. After that, I tested multiple transactions to observe how values change on-chain and added a require() statement to prevent the counter from going below zero. I also explored function visibility, gas usage, and deployment procedures, which helped me understand how even small contracts interact with the Ethereum Virtual Machine (EVM).