The United States Environmental Protection Agency (EPA) estimates that 10% of CO2 is emitted by the Agri sector. On one hand, Agri companies have sustainable products and services to offer to the growers. On the other hand, without proper economic incentives, farmers are reluctant to adopt sustainable practices. Centralized platform business models have so far not succeeded in creating economic value for the farmers, even while the demand for a voluntary carbon market is increasing. What technologies and business models can enable financially incentivizing farmers to implement climate-smart practices? What are the ways the buyer has proof of authenticity? In what ways the participants including investors can derive economic value?
ArgoChain is an NFT application powered by the QIE Blockchain (EVM-compatible) and written in Solidity Smart Contracts. Using React and ethers.js to interact with the QIE network, a user can register as a farmer in the application, upload & mint assets to IPFS, and buy or sell NFTs inside the ArgoChain marketplace. Industrial buyers can purchase those NFTs on QIE to grant carbon credits and invest directly in farmers so they can adopt sustainable practices.
It provides a way for farmers to sell carbon credits in the form of NFT to industrial buyers who need to buy carbon credits to achieve sustainability goals, thus giving farmers money to invest in more sustainable farming practices, and a win-win situation for all, the Air Quality verification is done using IoT devices, thus acting as a verification mechanism to ensure, that money is invested by farmers to adopt more sustainable farming methods.
Machine Learning Model, that can accurately predict the amount of carbon emission that can happen, from a field of 1 sq unit, based on the type of crop harvested, how much water is required, crop yield prediction, how well the irrigation is managed and other sustainable farming practices adopted, and based on it give the farmer a Carbon Score/credit that farmer can sell to the industry in exchange of Money/Crypto Currency
- Farmer Registration.
- Mint NFT for Cabon Credits using Verification from IoT Data to prove sustainable farming practice is adopted.
- IoT Device data is Directly streamed to NFT for verification using Device ID and Azure IoT Hub.
- User Dashboard to view all the NFT Minted, sold, and Purchased.
- Customer/ Industries can buy NFT carbon credits to meet their ESG Goals and remain Carbon neutral companies.
- Money in the form of Cryptocurrency is directly transferred to farmers without commission and middlemen, so they can invest the money in adopting more sustainable farming methods.
- Testnet:
https://rpc1testnet.qie.digital— Chain ID1983 (0x7BF) - Mainnet:
https://rpc1.qie.digital— Chain ID1990 (0x7C6) - Native token: QIE with 18 decimals and Explorer
https://www.mainnet.qie.digital
Create agrochain/.env with the following keys:
PRIVATE_KEY=your_private_key_without_0x
QIE_TESTNET_RPC_URL=https://rpc1testnet.qie.digital
QIE_TESTNET_CHAIN_ID=1983
QIE_MAINNET_RPC_URL=https://rpc1.qie.digital
QIE_MAINNET_CHAIN_ID=1990
Create agrochain/.env.local so the React app and wallet helpers know how to connect to QIE:
REACT_APP_QIE_CHAIN_ID=0x7BF
REACT_APP_QIE_NETWORK_NAME=QIE Testnet
REACT_APP_QIE_NETWORK_LABEL=QIE Testnet
REACT_APP_QIE_NATIVE_NAME=QIE
REACT_APP_QIE_RPC_URL=https://rpc1testnet.qie.digital
REACT_APP_QIE_EXPLORER_URL=https://www.testnet.qie.digital
REACT_APP_QIE_TOKEN_SYMBOL=QIE
Replace the values with mainnet settings when you are ready to go live.
For video demostration refer to the YouTube link here.
git clone https://github.com/IntelegixLabs/AgroChain
cd AgroChain/Rapyd.All
dotnet clean
dotnet build Agrochain.All.sln
cd Rapyd.API
dotnet watch run --Rapyd.API
cd AgroChain/agrochain
c:\windows\system32\cmd.exe /k "C:\Users\raj71\Downloads\node-v16.20.0-win-x86\nodevars.bat"
npm install
npx hardhat node
Use this only for isolated testing. For end-to-end flows target the QIE testnet or mainnet.
- Import the account that matches the
PRIVATE_KEYused inagrochain/.env. - Add a QIE Testnet network with:
Network Name:QIE TestnetNew RPC URL:https://rpc1testnet.qie.digitalChain ID:1983Currency Symbol:QIEBlock Explorer URL:https://www.testnet.qie.digital
- Switch to QIE Mainnet by using:
Network Name:QIE MainnetNew RPC URL:https://rpc1.qie.digitalChain ID:1990Currency Symbol:QIEBlock Explorer URL:https://www.mainnet.qie.digital
- Use the QIE Faucet to fund test accounts.
npx hardhat run src/backend/scripts/deploy.js --network qieTestnet
npx hardhat run src/backend/scripts/deploy.js --network qieMainnet
npx hardhat test
npm run start















