EcoTrack is a decentralized application (dApp) built on the Stacks blockchain using Clarity smart contracts. It enables individuals and organizations to log their eco-friendly actions—such as recycling, planting trees, or reducing carbon emissions—and earn ECO tokens as rewards for their sustainable contributions.
Climate change and environmental degradation are global challenges. EcoTrack incentivizes sustainability by using blockchain technology to:
- Promote transparency and accountability in eco-actions.
- Reward individuals and organizations for being environmentally conscious.
- Build a verifiable, immutable record of green contributions.
- ✅ Log eco-friendly actions (e.g., recycling, tree planting).
- 🏆 Earn ECO tokens as rewards.
- 🔍 Transparent action verification.
- 📊 Public leaderboard of top contributors.
- 🔐 Decentralized and secure with Clarity smart contracts.
- Stacks Blockchain – A Bitcoin-secured smart contract platform.
- Clarity – A decidable, safe smart contract language.
- Clarinet – Local development, testing, and deployment tool for Clarity.
The core smart contract includes:
log-action– Users log an eco-action with a description and category.verify-action– An admin or community oracle can verify actions.reward-user– Verified actions trigger ECO token rewards.get-user-actions– View all actions logged by a specific user.get-leaderboard– Returns top contributors based on earned tokens.
ecotrack/
│
├── contracts/
│ └── ecotrack.clar # Main smart contract
│
├── tests/
│ └── ecotrack_test.ts # Clarinet tests for smart contract
│
├── Clarinet.toml # Clarinet project config
└── README.md # Project documentation
- Install Clarinet
- Node.js (if testing with TypeScript)
git clone https://github.com/your-username/ecotrack.git
cd ecotrackclarinet testclarinet integrate(log-action "Planted 5 trees in city park" "tree-planting")(verify-action tx-sender action-id)(get-user-actions user-principal)- Only verified actions can earn rewards.
- An optional DAO model can be integrated for action verification.
- Anti-spam logic ensures genuine contributions.
-
ECO Token
- Earned via verified eco-actions.
- Capped supply or mint-per-action model (configurable).
- Potential DAO utility, staking, or carbon offset use cases.
Contributions are welcome! To contribute:
- Fork this repo
- Create your feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/my-feature) - Open a pull request
This project is licensed under the MIT License.
- Built on top of the Stacks blockchain
- Inspired by global sustainability goals (UN SDGs)
Together, we can build a greener, more transparent world—one action at a time.