A gateway was created using node.js and blockchain where farmers and buyers can interact directly eradicating the need for any middleman. The entire process of buying and selling is automated using smart contracts. The blockchain smart contracts were implemented for secure and decentralized network based communication between farmers and customers using solidity language on ethereum. If any discrepancy is detected, the system will rollback to a particular checkpoint and deliver back money to their respective owners.
We faced difficulty while integrating Solidity smart contract with Node.js. It was overcomed by using Ganache-cli to serve our blockchain smart contracts to our application.
Discussion