A Blockchain-Enabled IoT Framework for Secure and Traceable Pharmaceutical Supply Chains
Abstract
The proliferation of fake medications and inadequate cold chain logistics are among the top challenges in pharmaceutical supply, as centralized tracking has not effectively addressed these problems. Because of centralized tracking, a single admin is still able to alter the logs after they have been manipulated, with everyone downstream still unaware of it. The proposed research outlines an IoT-enabled blockchain architecture designed to capture RFID and NFC label information, incorporate environmental and positional sensing, and record the shipment trail in a permissioned Hyperledger Fabric ledger, adhering to the chain-of-custody principle from the manufacturer to the patient. Smart contracts facilitate custody changes, while the edge gateways locally batch sensor readings before submitting them to the ledger. This process helps maintain a manageable volume of transactions. Sensor data with large volumes is stored off-chain using IPFS. Only the hash of the content is stored translated onto-chains as a proof of verification anchorage. In essence, the framework calculates a final score of composite traceability confidence for each consignment which combines hash continuity and temperature compliance and custody continuity into a single metric beside a lightweight anomaly-scoring step tagging cold-chain excursions and custody gaps - the kind of irregularities tend to signal tampering or diversion. In simulation, across a 20-peer network processing around 18,400 shipment records, the system achieved a 97.1% accuracy in detecting counterfeit or anomalous shipments, while a blockchain-only baseline topped out at an 88.6% ceiling with no corresponding IoT layer. Item storage fell to more than half per shipment as against the baseline, with the throughput constant at more than 350 transactions per second at a 12-peer configuration. Considering all of these results as a whole, edge-level data reduction and permissioned blockchain, along with IoT instrumentalization, are a valuable way of creating auditable supply chains - at scale-without interfering with their own function.