The problem
Small merchants that want a loyalty program face two bad options: expensive SaaS platforms with monthly fees, or paper stamp cards that are easy to forge and impossible to analyze. Customers, meanwhile, have no way to verify that their points are real or to carry value between stores. Blockchain tokens solve both problems: balances live on a shared ledger, every issue and redemption is an auditable transaction, and the token contract enforces the earn rules in code rather than in a back-office spreadsheet. This project builds that idea into a complete student system: a customer wallet app, a merchant console, and a token ledger that hash-chains every block, with an ERC-20-style smart contract written for deployment to the Sepolia testnet. The in-browser demo chain lets the whole flow be demonstrated in a classroom with no network at all.
Earns tokens on purchases and redeems them for vouchers.
Follow the working sequence
How it works
- A purchase is entered in the merchant console (or simulated), calling the contract's earn function which mints LYT to the customer's address at the configured rate.
- The customer's tier multiplier (Silver 1x, Gold 1.25x, Platinum 1.5x) is applied automatically from lifetime earned tokens.
- The backend indexes the transfer event and appends a block to the demo ledger with the transaction hash, prev-hash and timestamp.
- The customer sees the new balance, tier progress and transaction row in the wallet instantly.
- Redemption burns tokens through the contract and issues a voucher code; the merchant approves pending redemptions in the console queue.
- Anyone can walk the ledger's prev-hash links to verify that no historical transaction was altered.
Tech stack:
- Solidity 0.8.x, Hardhat (contract development and testing)
- React 18 (customer wallet and merchant console frontends)
- Node.js, Express (backend API and event indexing)
- PostgreSQL / SQLite (read-model database and redemption queue)
- Sepolia testnet + MetaMask (deployment demo and transaction signing)
| Parameter | Value |
|---|---|
| Token standard | ERC-20-style (mint, transfer, burn, allowances) |
| Earn rule | Design: 1 LYT per Rs. 10 of bill, multiplied by tier |
| Tiers | Silver / Gold / Platinum by lifetime earned tokens, configurable thresholds |
| Ledger | Hash-chained demo blocks (hash + prev-hash + timestamp) in-browser; on-chain events on Sepolia |
| Contract network | Sepolia testnet (deployment scripts and guide included) |
| Backend | Node.js + Express API with relational read-model |
| Wallet | Browser-based signing via MetaMask (demo mode needs no wallet) |
| Output | Voucher codes on redemption, merchant analytics, auditable ledger |
Project features
- [ERC-20-style token contract] Mint, transfer, burn and allowance functions with tier-based earn multipliers, developed and tested in Hardhat
- [Customer wallet] Token balance, tier progress bar, voucher redemption and full transaction history in a clean dashboard
- [Merchant console] Campaign token distribution, pending-redemption approvals, circulating-supply and member analytics
- [Hash-chained demo ledger] Every token movement recorded in blocks linked by prev-hash, so tampering with history invalidates the chain
- [Tier engine] Silver, Gold and Platinum tiers recomputed from lifetime earned tokens with configurable thresholds and multipliers
- [Voucher redemption flow] Token burn in exchange for merchant voucher codes, with an approval queue for the merchant
- [Testnet deployment path] Contract deployment scripts and guide for the Sepolia testnet with MetaMask signing
- [Offline demo mode] In-browser simulated chain so the entire earn/redeem/ledger flow demos without internet
What is included
- Complete source code (smart contract, backend API, customer wallet, merchant console)
- Hardhat test suite for the token contract
- Sepolia deployment scripts and step-by-step deployment guide
- Project report PDF (architecture, contract design, ledger design, testing, honest scope)
- PPT presentation for final review
- Viva Q&A preparation document (ERC-20, hashing, consensus vs demo chain, gas, tiers)
- Setup guide (local demo mode and testnet mode)
Advantages
- Customers earn blockchain tokens for purchases and redeem them for vouchers, with an ERC-20-style smart contract enforcing the earn rules.
- A customer wallet tracks token balance, tier progress, voucher redemption and full transaction history in one dashboard.
- Tier-based earn multipliers across Silver, Gold and Platinum tiers, recomputed from lifetime earned tokens with configurable thresholds.
- Every mint, transfer and burn is written to a hash-chained ledger, so tampering with history invalidates the chain.
- The demo runs fully offline in an in-browser simulated chain, and the shipped contract also has a deployment path to the Sepolia testnet.
Disadvantages
- The in-browser demo chain is a simulation for classroom demos, not a real blockchain network: it gives hash-chained tamper evidence but no distributed consensus.
- Testnet transactions need Sepolia ETH from a faucet and a public RPC endpoint; faucets can be rate-limited and RPC endpoints can change.
- Gas costs on mainnet would make micro-earns uneconomical, so the project targets testnet and demo scope.
- Token value is illustrative and the tokens are not a currency: they carry no monetary redemption outside the merchant's vouchers, and cross-merchant acceptance is future scope, not in the base build.
Limitations & prerequisites
- The in-browser demo chain is a simulation for classroom demos, not a real blockchain network: it provides hash-chained tamper evidence but no distributed consensus.
- Testnet transactions need Sepolia ETH from a faucet and a public RPC endpoint; faucets can be rate-limited and RPC endpoints can change.
- Gas costs on mainnet would make micro-earns uneconomical — the project targets testnet/demo scope and the report states this openly.
- Token value is illustrative (1 LYT = Rs. 0.50 of reward value in the demo); the tokens are not a currency and carry no monetary redemption outside the merchant's vouchers.
- Cross-merchant acceptance needs a shared contract registry, which is listed as future scope, not in the base build.
Frequently Asked Questions
Is this a real blockchain or a simulation?
Both, honestly separated. The demo app runs an in-browser simulated token ledger with real hash-chaining so the full flow works offline in a classroom. The shipped smart contract is genuine Solidity, tested in Hardhat and deployable to the Sepolia testnet — the report documents exactly which part is which.
What does the smart contract do?
It implements ERC-20-style mint, transfer, burn and allowance functions, plus loyalty-specific logic: tier thresholds, earn multipliers and campaign distribution. The Hardhat test suite verifies each function before deployment.
Do I need cryptocurrency to run the demo?
No. The in-browser demo chain needs nothing but a browser. Only the optional Sepolia deployment needs testnet ETH, which is free from faucets.
Can it work for multiple shops?
The base build is single-merchant. Cross-merchant token acceptance with a shared registry is documented as future scope and can be developed as a customization.
Is this project suitable for a final-year project?
Yes — it is listed under Computer / IT and suits Computer Science and Information Technology students. It demonstrates smart contracts, full-stack development, API design and applied cryptography concepts.
What will I receive with the project?
Complete source code (contract, backend, both frontends), the Hardhat test suite, Sepolia deployment guide, project report PDF, PPT presentation, viva Q&A document and setup guide. Suitable for B.E./B.Tech final-year projects in Computer Science, Information Technology and related branches.
Components & software requirements
- Solidity 0.8.x, Hardhat (contract development and testing)
- React 18 (customer wallet and merchant console frontends)
- Node.js, Express (backend API and event indexing)
- PostgreSQL / SQLite (read-model database and redemption queue)
- Sepolia testnet + MetaMask (deployment demo and transaction signing)
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.