All projects

AutoCrop Insurance – Automated Rainfall-Based Smart Insurance

Smart contract that automatically pays farmers when rainfall drops below a threshold using CRE automation.

CRE & AI World

What it is

Farmers often face delayed insurance payouts due to manual verification processes. This leads to financial stress and uncertainty during crop failures.
AutoCrop Insurance is a decentralized crop insurance system that automates the payout process using blockchain and Chainlink CRE workflows.
The project allows a farmer to deploy a smart contract insurance policy with funds locked inside the contract. A rainfall threshold is defined when the policy is created.
A Chainlink CRE workflow fetches rainfall data from an external weather API and sends it to the smart contract. If the rainfall value falls below the predefined threshold, the contract automatically triggers the payout to the farmer’s wallet
This removes the need for manual verification, reduces corruption, and ensures fast and transparent insurance settlements.
The project demonstrates how decentralized automation can improve agricultural insurance systems using blockchain technology.

How it Works

The project is built using Solidity smart contracts deployed on the Ethereum Sepolia test network.
The smart contract stores the farmer’s policy, rainfall threshold, and locked insurance funds. When rainfall data is received, the contract automatically checks if the rainfall value is below the threshold and triggers the payout if conditions are met.
A CRE workflow simulates automated weather data retrieval from an external API and calls the smart contract function updateRainfall().
The backend automation is implemented using Node.js and ethers.js to simulate the CRE execution process.
Project stack:

  • Solidity smart contracts
  • Hardhat development environment
  • Ethereum Sepolia testnet
  • Node.js automation scripts
  • Chainlink CRE workflow simulation

Links

Created by

  • Anuj