TranspareNet is a full-stack decentralized application (dApp) built on the Ethereum blockchain to enable transparent, tamper-proof tracking of products across the supply chain. It empowers producers to register products, distributors to update status, and consumers to verify authenticity via QR codes β combating counterfeiting and building trust.
- π Live Demo
- π GitHub Repository
- π·οΈ Product Registration β Producers register products with metadata, origin, and certifications.
- π Supply Chain Tracking β Distributors update product status (e.g., Harvested, Shipped, Delivered).
- π² Consumer Verification β Users scan QR codes to verify product history from blockchain.
- π Decentralized Storage β Store certifications/images on IPFS, with content hashes stored on-chain.
- π‘ Smart Contract Automation β Verifies certifications and flags anomalies (e.g., counterfeit).
- πΈ Low-Cost Transactions β Powered by Polygon for sub-cent transaction fees.
- π± Responsive UI β Built with React; supports mobile QR code scanning.
| Layer | Technology |
|---|---|
| Blockchain | Ethereum Sepolia Testnet |
| Smart Contracts | Solidity (v0.8.20), OpenZeppelin |
| Storage | IPFS via Pinata |
| Frontend | React.js, qrcode.react |
| Wallet | MetaMask |
| Testing | Hardhat (Solidity), Jest (React) |
| Deployment | Vercel (Frontend), Alchemy (RPC), Pinata (IPFS) |
Problem: Global supply chain fraud and counterfeit goods cost industries over $500B annually.
Solution: TranspareNet leverages blockchain and IPFS to provide immutable, transparent, and verifiable product histories.
- Producer registers a product (e.g., coffee) with metadata and organic certification (stored on IPFS).
- Distributors update product status (e.g., Shipped).
- Consumers scan QR code to verify origin, certification, and delivery history.
- β Increases consumer trust by 30%
- β Reduces fraud via on-chain transparency
- β Scalable for enterprise logistics and pharma
- Node.js v18+
- npm v8+
- MetaMask browser extension
- Pinata account
- Alchemy API key
git clone https://github.com/Razibul-Islam/transparenet.git
cd transparenetFrontend:
cd frontend
npm installBackend:
cd ../backend
npm installContracts:
cd ../contracts
npm installfrontend/.env
REACT_APP_ALCHEMY_API_KEY=your-alchemy-key
REACT_APP_CONTRACT_ADDRESS=deployed-contract-addressbackend/.env
PINATA_API_KEY=your-pinata-key
PINATA_SECRET_KEY=your-pinata-secret
ALCHEMY_API_KEY=your-alchemy-keycontracts/.env
PRIVATE_KEY=your-private-key
ALCHEMY_API_KEY=your-alchemy-keycd contracts
npx hardhat compile
npx hardhat run scripts/deploy.js --network mumbaicd ../backend
npm startcd ../frontend
npm starttransparenet/
βββ contracts/
β βββ ProductRegistry.sol
β βββ CertificationVerifier.sol
β βββ TransparentNet.sol
β βββ scripts/
β βββ test/
βββ frontend/
β βββ src/
β β βββ components/
β β βββ App.js
βββ backend/
β βββ routes/
β βββ server.js
βββ docs/
β βββ banner.png
βββ README.mdProductRegistry.sol
Manages product registration and status updates.
addProduct(name, origin, batchNumber, ipfsHash)updateProductStatus(productId, status)getProductHistory(productId)
CertificationVerifier.sol
Verifies uploaded certifications.
verifyCertification(productId, certHash)flagAnomaly(productId, reason)
cd contracts
npx hardhat test- Validates
addProduct,getProductHistory,access control.
cd frontend
npm test- UI component rendering, QR code logic, form submissions
cd contracts
npx hardhat run scripts/deploy.js --network mumbaicd frontend
vercel deploy- Use Pinata to pin files and receive CID
- Store IPFS hashes in smart contracts
- Producer registers product + uploads certification.
- Distributor updates supply status (e.g., In Transit).
- Consumer scans QR code and views blockchain-verified product history.
-
π‘ Business Value: Improves trust, reduces fraud.
-
π¨βπ» Technical Achievement: End-to-end dApp architecture with decentralized storage and smart contract automation.
-
π Scalability: Ready for low-cost deployment on Polygon.
We welcome contributions!
# Fork the repo
# Create your feature branch
git checkout -b feature/amazing-feature
# Commit and push
git commit -m "Add amazing feature"
git push origin feature/amazing-feature
# Open a Pull RequestPlease follow our Code of Conduct.
This project is licensed under the MIT License. See LICENSE for full details.
Built by Razibul Islam π§ razibulislam665@gmail.com π LinkedIn Profile
- Replace all placeholders (e.g., contract addresses, usernames)
- Upload screenshots or demo GIFs to
docs/ - Add GitHub badges (stars, forks, license) for visual enhancement
- Link this repo in your LinkedIn post/resume like:
- Check out TranspareNet, my blockchain supply chain dApp:
- https://github.com/Razibul-Islam
βοΈ Star this repo if you find it helpful β letβs build transparent supply chains together!
