Technical Stack
DecentrAgri leverages a modular, scalable architecture composed of open-source technologies and decentralized protocols. Each layer is designed to ensure data reliability, traceability, and usability across diverse agricultural contexts.
Layer
Technology Stack
Sensor Layer
- Custom-built IoT boards using ESP32 or STM32 chips with low-power wireless modules (LoRa/Wi-Fi) - Equipped with sensors for soil pH, moisture, light intensity, temperature, and humidity - Solar-powered with fallback battery support for off-grid operation
Edge Processing
- Lightweight C++ or MicroPython firmware for on-device preprocessing and calibration - AES encryption for secure data packaging before transmission
Data Layer
- bun javascript handle ingestion, validation, and transformation of raw data - Memgraph as database with schema validation to enforce data consistency
Storage Layer
- Decentralized file storage using IPFS via Pinata or Filebase - Data is structured in JSON
Blockchain Layer
- NFT minting and metadata anchoring on Swellchain - Smart contracts written in Solidity following ERC-1155 standards (customized for non-transferable utility NFTs)
NFT Metadata
- Uses JSON schema to link IPFS hash, GPS coordinates, timestamp, sensor type, and consent status - Immutable metadata provides long-term auditability
Frontend (UI/UX)
- Built with Godot, - Supports real-time data filtering,dataset downloads - Future-ready for integrating GIS layers and AI insights
Authentication
- Traditional Username and Password login but using Web3 Acccount Abstraction - Farmer device pairing and ownership validation via signed device keys
APIs & SDKs
- RESTful APIs to access datasets programmatically - SDKs in JavaScript and Python for data science integration, mobile apps, and external tools
Last updated