Blockchain-Verified Pharmaceutical Security

Every Medicine
Deserves Proof

Immutable blockchain records for every pharmaceutical batch. Serialized QR tracking for every box. Instant verification for every patient. No wallet needed.

100%
Tamper-Proof
0
Gas Fees for Users
<2s
Verification
24/7
Chain Monitoring
Process

From Factory to Patient

Four cryptographic checkpoints ensure every medicine is authentic, every transfer is verified, and every patient is protected.

01

Manufacture & Record

Manufacturer creates a batch on-chain. Each box gets a unique serial ID and a cryptographic QR code. The blockchain stores immutable provenance.

createBatch() on Solidity smart contract
02

Distribute & Track

Ownership transfers between stakeholders are recorded on-chain. Each handoff requires digital confirmation, building an unbreakable custody chain.

initiateTransfer() + acceptTransfer() chain
03

Retail & Confirm

Pharmacy scans box QR at point of sale and cryptographically signs the transaction. The box is marked sold, preventing any reuse of the QR code.

Pharmacy wallet signature verification
04

Scan & Verify

Consumer scans the QR code on their phone. No wallet, no login, no fees. Instantly see the full journey from factory to their hands.

Zero-friction read-only verification
Supply Chain

Immutable Custody Chain

Every handoff between stakeholders creates an on-chain record. Smart contracts enforce role-based permissions, ensuring only authorized participants can transfer custody.

Manufacturer

Creates batch on-chain, generates QR codes

Distributor

Receives & transfers with blockchain proof

Pharmacy

Confirms delivery, sells with signature

Consumer

Scans QR, verifies authenticity instantly

Block #14,892,301 — On-Chain Batch Record
{
"batchId": "B-2026-01",
"medicine": "Paracetamol 500mg",
"manufacturer": "0x7Fc...a3B2",
"totalBoxes": 500,
"status": "DELIVERED",
"transfers": 3
}
Features

Built for Trust

Every feature is designed to prevent counterfeit medicines from reaching patients while maintaining operational scalability for real-world pharmaceutical volume.

Immutable Provenance

Every batch is recorded on Ethereum Sepolia. Once written, records cannot be altered, deleted, or tampered with by any party.

Role-Based Access

Smart contracts enforce strict permissions. Only authorized manufacturers create batches, only owners transfer custody.

Cryptographic Signatures

Pharmacies sign sales with their wallet. Every box sale is cryptographically verified, preventing unauthorized distribution.

Wallet-Free Verification

Consumers scan a QR code. No blockchain knowledge needed. No wallet, no login, no gas fees. Just instant proof.

Duplicate Detection

Blockchain state reveals QR reuse instantly. Copied codes fail verification because the sold-state is immutably locked.

Smart Contract Audit Trail

Two interlocking contracts manage roles and batches. Full custody timeline available for any batch at any time.

Smart Contracts

Two Contracts. One Trust Layer.

Interlocking Solidity contracts enforce role-based access, immutable batch provenance, and tamper-proof custody transfers — deployed on Ethereum Sepolia testnet.

RoleManager.sol

Manages participant registration, verification, and role assignment

fn

registerParticipant(role, input)

Self-onboard as manufacturer, distributor, or pharmacy

fn

addManufacturer(wallet, input)

Admin directly onboards a verified manufacturer

fn

verifyParticipant(wallet)

Admin approves a pending registration

fn

isVerified(wallet)

Called by Batch.sol to gate all transactions

fn

renewLicense(wallet, newExpiry)

Admin extends a participant's license

Verification

Scan. Verify. Trust.

Patients scan the QR code on their medicine box. No wallet, no login, no crypto knowledge. Just instant blockchain-backed proof of authenticity.

medtrace.app/verify
Verified Authentic

This medicine has been verified on the blockchain. Complete supply chain history is available.

Medicine
Paracetamol 500mg
Batch
B-2026-01-167
Expiry
December 2027
Sold At
City Pharmacy, Mumbai

Supply Chain Journey

Manufactured

PharmaCorp Labs · Jan 15, 2026

Distributed

MedLogistics Inc. · Jan 22, 2026

Received

City Pharmacy · Jan 28, 2026

Sold

Verified Purchase · Feb 10, 2026

Dashboards

Role-Based Interfaces

Every stakeholder gets a purpose-built dashboard. Smart contracts enforce what each role can do. The UI makes it simple.

Admin

Verify participants, manage roles, monitor batches, resolve reports

Participant Management
Compromised Batch Flagging
Pending Approvals

Manufacturer

Create batches, generate QR codes, transfer ownership

Batch Statistics
QR Label Generation
Ownership Transfer

Distributor

Accept deliveries, confirm transfers, track shipments

Accept Delivery
Shipment Timeline
Transfer Forward

Pharmacy

Scan boxes at sale, mark sold, manage inventory

QR Box Scanner
Sale Confirmation
Inventory Tracking
Technology

Powered by Proven Tech

Blockchain stores the trust layer. Backend handles operational scalability. Together they deliver hospital-grade reliability at internet scale.

Blockchain

Ethereum SepoliaSolidity ^0.8.20

Frontend

Next.js 14ReactTailwind CSS

Web3

ethers.js v6MetaMask

Backend

Next.js API RoutesMongoDB

QR & Scanning

html5-qrcodeQR Code Gen

Deployment

VercelSepolia Testnet
architecture.flow
// MedTrace System Architecture
Stakeholders → Dashboards
↓
Smart Contracts (RoleManager.sol + Batch.sol)
↓
Ethereum Sepolia — immutable ledger
↓
Backend API — QR gen, box records, indexing
↓
Consumer Verification — zero-friction read

Ready to Eliminate
Counterfeit Medicines?

Join the decentralized pharmaceutical trust network. Give every medicine a verifiable story and every patient peace of mind.