Plastic Trace
Plastic Waste Trace & Reward System Empowering communities to recycle, trace, and get rewarded—leveraging blockchain, QR codes, and gamification for real-world sustainability!
Videos
Description
♻️ Plastic Waste Trace & Reward System
Empowering communities to recycle, trace, and get rewarded—leveraging blockchain, QR codes, and gamification for real-world sustainability!
Project Overview
Plastic Waste Trace & Reward System is a blockchain-powered platform designed to bring transparency, accountability, and real incentives to plastic recycling. By leveraging unique QR codes and smart contracts on Flow, the platform ensures every piece of plastic collected can be traced, verified, and rewarded. The core mission is to motivate effective community action, support rag pickers and recyclers, and provide cities with auditable recycling data in an open and secure environment.
Demo Link:- https://plastic-trace.vercel.app/
Problem
Plastic pollution is a major environmental challenge with serious urban impact:
Inefficient collection and tracking of recyclables.
Lack of trustworthy data on recycling rates and sources.
Unrecognized efforts of frontline collectors (rag pickers and recyclers).
Low community engagement due to lack of transparency and incentives.
Solution
Our platform delivers:
Unique QR codes that physically and digitally track plastic throughout the collection and recycling lifecycle.
Immutable blockchain records on Flow for all actions (scan, verify, recycle), ensuring tamper-proof histories and accurate impact reporting.
Automated, tokenized eco-rewards for rag pickers and recyclers to incentivize consistent participation.
Gamified dashboards and leaderboards that enhance engagement and community pride.
Open dashboards for citizens and city officials to monitor and celebrate recycling progress.
Key Features
Immutable tracking on Flow
Token and NFT rewards
Public dashboards for citizens
Fraud-proof QR lifecycle
Defi Actions using flow forte
Scheduled workflows
Tech Stack
Blockchain: Flow EVM — core smart contracts and trusted event logging.
Smart Contracts:
RoleManager (permission control)
QRCodeManager (QR code generation and assignment)
RecyclingTracker (lifecycle event tracking)
RewardToken (ERC-20 eco-rewards)
RewardDistributor (automated payouts)
Frontend: React.js with thirdweb SDK for fast wallet connections, contract interaction, and seamless user onboarding.
Backend: Node.js + Express + MongoDB for fast analytics, dashboards, and session management.
Web3 Tools: thirdweb (wallet and contracts), Ethers.js.
Development: Hardhat (compile, test, deploy), OpenZeppelin (security best practices).
🏆 Sponsor Tech Highlights
Flow
All critical smart contracts and immutable event logs run on Flow’s Layer 2 blockchain, capitalizing on ultra-low fees and sub-second confirmation times.
Full EVM compatibility lets us write and deploy Solidity contracts using familiar tooling like Hardhat and OpenZeppelin—enabling rapid, reliable development.
Sustainability-aligned, Flow uses an energy-efficient proof mechanism, keeping your environmental footprint minimal.
Find Labs API
All transactions tracking is done using find labs API
Thirdweb
User Authentication & Wallet Management: Simplifies sign-in flows across all roles with React hooks (
ConnectWallet) and secure wallet integrations.Contract Interaction: Handles blockchain calls like QR scan logging and reward disbursement using the thirdweb React SDK, abstracting the complexities of Ethers.js.
Token Management: Our RewardToken derives from thirdweb's audited ERC-20 implementation, ensuring upgradability and compatibility.
Admin Tools: Includes easy-to-use dashboards and proxy upgrade support for secure contract upgrades and role management.
Developer Friendly: Tools for fast local testing, gas estimation, and deployment to Flow testnets/mainnet with an optimized developer experience.
User Flow
Flow Summary
Admin:
Generates unique QR codes and assigns them to recyclers or collection points.
Approves recyclers/rag pickers and manages reward pools.
Monitors overall recycling progress via dashboards.
Recycler:
Receives and distributes QR codes.
Verifies collected plastics scanned by rag pickers.
Marks items as recycled to trigger rewards.
Rag Picker:
Scans QR codes on collected plastic waste.
Submits collection data on the mobile/web dApp.
Earns eco-reward tokens for verified activities.
Citizen/Public:
Observes community recycling efforts, leaderboards, and campaign impact.
Engages by sharing and supporting eco-champions.
System Architecture
On-Chain (Flow Blockchain)
Smart Contracts (Solidity): Manage roles, QR lifecycle, recycling events, and reward distribution.
Immutable Event Logs: Every scan, verify, and recycle action is recorded with timestamps.
Access Control: RoleManager enforces restricted permissions for security.
Reward Logic: RewardDistributor contract automates payouts based on verified events.
Off-Chain Backend & Analytics
MongoDB: Stores user profiles, session data, and derived analytics (for fast dashboards).
Express API: Serves frontend requests for dashboards, leaderboards, and admin controls.
Event Listeners: Sync blockchain events to the DB for realtime UX.
Frontend (React + thirdweb)
Wallet Connection and Transactions: Facilitated by thirdweb React SDK, ensuring easy and secure blockchain interactions.
Mobile-First QR Scanning: Uses device cameras and browser APIs for simple, fast scan-and-submit flows.
Role-Specific Dashboards: Tailored views for Admin, Recycler, Rag Picker, and Citizen roles.
Admin Console: Manages user onboarding, QR code generation, and reward pool funding.
Contract Addresses
0x4663E1c09ea9c5120Bc757DD2478f5Ff3FcB6167
0x566AC179DbFD2d02769dbF5494b620Aa42e0Af59
0x5D934Ed328963DF0CB0b69d986c604e9BcC11cfE
0x8dB385AFB15CEBe8f345A2F4bCDcc757E1C6EdA3
0x12F763E90E1A76a1F811D20D976D525423FFC10d
0xf4464df251228C40049F0b58676ae27096A8Ae2B
Progress During Hackathon
Created complete end to end smart contract Integrated smart contracts on frontend Used thirdweb for contract interaction and deployment