ColdchainX
Zero Counterfeit. Zero Waste. Zero Compromise.
Created on 8th March 2026
•
ColdchainX
Zero Counterfeit. Zero Waste. Zero Compromise.
The problem ColdchainX solves
Every year, 1 million people die from counterfeit drugs—more than malaria. $35 billion worth of medicines are destroyed by temperature failures during transit, and 25% of vaccines arrive damaged and unusable. Patients have no way to verify if their medicine is real. Hospitals lose 20 million hours annually just managing shortages. Distributors operate blindly, with no real-time visibility into their shipments. The result? A broken system where trust is impossible, waste is staggering, and lives are lost.
coldchainX fixes this. We combine Polygon blockchain for immutable tracking, IoT sensors for real-time temperature monitoring, and AI predictions to prevent failures before they happen. Patients can scan a QR code and see exactly where their medicine came from—every step, verified. Hospitals get automatic expiry alerts and zero counterfeit drugs. Distributors get live GPS tracking and instant temperature alerts. The result? 100% transparency, 45% less waste, and $235 billion saved annually. From manufacturer to patient—every step, verified.
Challenges we ran into
The biggest hurdle was the infamous "Stack too deep" Solidity error. Our smart contract's Shipment struct had 17 fields, but the EVM stack can only hold 16 variables at once. The compiler kept failing with cryptic errors, and we wasted two days trying to rearrange variables before realizing the root cause. We solved it by splitting the data into multiple structs—Medicine, Tracking, and Temperature—then composing them into the final Shipment. This not only fixed the error but made our code more modular and readable.
Another nightmare was ESP32 sensor calibration. Our DHT22 temperature sensors were giving wildly inaccurate readings (±3°C) during field tests—completely useless for vaccine monitoring that requires ±0.5°C accuracy. One minute it would read 4°C, the next 8°C. We discovered electromagnetic interference from the 4G module was corrupting the analog signal. The fix? We added a moving average filter in firmware, switched to digital DS18B20 sensors, and physically shielded the components. Now our readings are accurate to ±0.1°C.
The IPFS-Filebase integration was its own beast. The CID returned during upload was completely different from the one needed for retrieval, causing all our stored data to be "lost." We spent three days debugging before realizing Filebase's S3-compatible API returns an ETag, not the actual IPFS CID. The solution was to query the metadata after upload to get the real CID—and implement a manual mapping cache as fallback.
Finally, real-time socket connections kept dropping under load. Users would connect, get initial data, then silently disconnect. The logs showed nothing. After a week of profiling, we found the issue: our MongoDB queries were taking 2-3 seconds, blocking the event loop and causing heartbeat timeouts. We added Redis caching for frequent queries and optimized indexes. Now connections stay alive and real-time updates actually work.
Technologies used