Trustless Insurance Market Using FDC Web2 Connectivity
summary
A trustless weather insurance agency is built on Flare using the Flare Data Connector (FDC) to fetch OpenWeather API JSON, encode it with a Data Transport Object and verify it on‑chain via JSON API proofs. Policies carry coordinates, start/expiry timestamps, min‑temperature loss thresholds, premium and coverage amounts; insurers deposit coverage before status flips to open and funds are transferred only after state update to prevent reentrancy. JQ filters produce solidity‑compatible DTOs and the AI signature hack generates the encoding schema.
AI-written summary · about
chapters (20)
- 0:00Introduction to Flare’s Trustless Insurance Market Workshop
- 0:10Overview: Weather Insurance Using FDC Web2 Connectivity
- 1:26Workshop Agenda: Q&A, Quiz, and Flare Merch Giveaway
- 2:12OpenWeather API Setup and Data Requirements
- 2:56Policy Workflow: Holders, Insurers, and Decentralized Claims
- 4:23Loss Criteria: Temperature Thresholds and Policy Terms
- 6:00Policy Resolution: Expiration, Refunds, and Payouts
- 7:27Decentralization Benefits: No Mandatory Proof Submissions
- 9:05Flare Data Connector (FDC) for Web2 API Integration
- 10:35JSON API Constraints: Public Access and Data Formatting
- 12:02Weather Data Parsing: Coordinates and Temperature Metrics
- 14:12Flare Developer Hub and Hardhat Starter Repository
- 15:50Smart Contract Deep Dive: Policy Structs and Status Logic
- 17:18Policy Creation: Premiums, Coverage, and Timestamps
- 20:25Policy Claiming: Insurer Deposits and State Updates
- 23:34Resolving Policies: On-Chain Proof Verification
- 29:54Data Transport Objects (DTOs) and FDC Encoding
- 32:45Payout Logic: Handling Losses and Expirations
- 35:20JQ Filters: Transforming JSON for Solidity Compatibility
- 37:39Workshop Recap and Next Steps
related talks
40mTrustless Insurance Market Using Web2 Connectivity
26mFlare Workshop - Bring Any Web2 Data On Chain
21mIntroduction to Flare Protocols
24mWorkshop Bring Any Web2 Data On Chain
26mPutting the Decentralization in DeFi: Addressing the Critical Problem of Data in Crypto
18mBuilding Customer Confidence with Insurance to Weather a “Crypto Winter"
20mBuilding the data layer for AI
32mCreate Data Coin and Agent – Nandit Mehra
