System Architecture of AgriClear

System Architecture of AgriClear

System Architecture of AgriClear 

AgriClear is a mobile-based solution that facilitates the tracking of excellent agricultural habits and practices from farm to finger. It employs distributed ledger technology (DLT) to transform Nepal's current farming processes by using blockchain technology to maintain agro-supply channels in the network. AgriClear is working for different organizations such as GreenGrowth, HEIFER, SHREENAGAR Agro Farm, CARE Nepal, Alpine Coffee Estate and offering the value propositions to farmers, consumers, and other stakeholders in the supply chain.

AgriClear aims to track safe, authentic and organic agricultural products. It provides solutions to the various problems faced by farmers, traders and the consumers and connects them through a transparent and traceable blockchain ledger. With the use of blockchain it's easier to access the data and know the products' quality and safety. It stores all the transactional data provided by each microservice to the blockchain network.

This article addresses how AgriClear operates and how multiple users associated in the production and distribution stages of agro-products, will be able to know the status of the product from seedling to delivery.

 The multiple actors of AgriClear are listed below: 

  • The Farm Labourer
  • Farm Admin or Farmers
  • Processing/Industrial User
  • Distributor/Agro-trader and
  • End Consumers

Farmers can use the app to keep the records of the seed, fertilizers etc. that they have used during the production phase.  Farm laborers can also record this information via a mobile responsive app. Once the production cycle ends, the products are handed over and assigned to respective traders or distributors or processing industries according to the need of business. 

Then, the processing industry or the distributor  records multiple ranges of data generated in this phase like processing methods used, processing date,  the place from where and at what time the product is transferred, and how long the goods are stored etc. of the recorded data and information through the use of  blockchain technology and examines the relevancy of data and information. As consumers are keen to know about the foods they consume once the agro-product is in the market, they can scan the QR code and get access to all the product’s history.

 For more information regarding How AgriClear works?  Click Here.


Image: Consumer View of Sweet Oranges



The Agriclear System revolves around the four blocks i.e. Pluggable MicroServices, Blockchain Network, Central API Gateway and Agriclear Administrator. There are many components in the system; each one is designed as an independent microservice and serves the data to the Agriclear clients (farmers, distributors, or end-users). 

Currently Agriclear is deployed on the private blockchain with the consortium of all the stakeholders of the agriclear project. However, it is designed for the EVM (Ethereum Virtual Machine) based platforms so it can be deployed and run in any of the EVM based blockchains. 

As blockchain provides the integrity of all the data related to the users ; it stores all the transactional data such as the types of soil, seeds, fertilizers used, processing methods used, processing date,  the place from where and at what time the product is transferred, and how long the goods are stored etc. provided by each microservice to the blockchain network. All of these data are stored on the blockchain through Smart Contract programmed in Solidity. 

After the data is stored, the Agriclear client can directly validate the data received from each microservice through the blockchain network and also can query all the services provided by each microservice through a central API gateway.

But before that, every client must have a blockchain wallet in their app to access the Agriclear API. To access the Agriclear microservice client has to be authenticated through Agriclear Administration. Agriclear administration uses wallet-based authentication for each request sent by the client. In order to authenticate themselves users need to send the ECDSA  (Elliptic Curve Digital Signature Algorithm) signature of specific data provided by an agriclear administrator signed through their wallet. 

With the use of blockchain technology, AgriClear is attempting to transform Nepal's existing farming practices by keeping track of all the supply channels in the network. Similarly, farmers and distributors also can maintain track of all activities, differentiate their product quality from competitors', and win consumer trust. Along with that, it aids consumers in understanding the quality and safety of the foods they consume and helps determine the value of their purchase.