Travelsure

Travelsure: AI-powered flight insurance with instant on-chain payouts for delays & cancellations

Travelsure

Created At

ETHOnline 2025

Project Description

Travelsure is a decentralized flight insurance platform that automates the entire insurance journey, from purchasing coverage to claim settlement, through smart contracts.

Users can instantly insure their flights, pay in PYUSD, and receive automatic on-chain payouts when delays or cancellations occur. No claim forms, no intermediaries, no waiting.

Travelsure delivers the best consumer experience by having an AI Insurance agent for recommended insurance policy

How it's Made

Travelsure was built as a decentralized flight insurance protocol that automates the full insurance lifecycle, from policy creation to on-chain payout. Using smart contracts, Chainlink infrastructure, DeFi primitives, and AI integration from ASA (Artificial Superintelligence Alliance).

Smart Contracts (Solidity, EVM)

  • PolicyManager.sol , Core contract managing policy creation, premium collection, and instant payouts in PYUSD.
  • MockFunctionsRouter.sol , contract used for testing Chainlink Functions in local environment

These contracts were written in Solidity and deployed on an EVM-compatible network, ensuring composability with existing DeFi protocols.

Off-Chain Flight Data with Chainlink Functions

  • Used Chainlink Functions to securely fetch and process flight delay data.
  • The DON executes a JavaScript script that queries real or mock flight APIs, computes delay time, and sends results back on-chain.
  • Integrated a mock mode inside the Functions script to simulate flight delays for deterministic testing and demo reliability. This eliminated dependency on live APIs during development while keeping the on-chain logic identical to production flow.

Stablecoin Payments (PYUSD)

  • PYUSD (PayPal USD) was chosen for its dollar-backed stability and low volatility.
  • All premiums and payouts occur in PYUSD, ensuring transparent, fiat-equivalent settlements.
  • The system can easily extend to other ERC-20 stablecoins if needed.

Frontend Application (Next.js, Wagmi, RainbowKit)

  • Built with Next.js for a responsive and clean UI.
  • Integrated Wagmi and RainbowKit for wallet connection, contract reads/writes, and transaction tracking.
  • The frontend shows users their active, paid, and expired policies, along with on-chain transaction links.

AI Integration (Artificial Superintelligence Alliance)

  • Integrated a conversational LLM agent powered by the Artificial Superintelligence Alliance (ASA). The AI assists users with:
  • Understanding coverage terms and claim outcomes
  • Explaining flight delay logic and premiums
  • Navigating on-chain transactions in natural language

This made the insurance experience intuitive and accessible for non-technical users.

Travelsure combines:

  • Smart contracts (Solidity) for policy and payout automation
  • Chainlink Functions for off-chain flight data verification
  • PYUSD stablecoin for reliable on-chain settlement
  • Next.js + Wagmi frontend for user experience

Together, these components form a fully automated, composable insurance protocol blending AI assistance, and real-world flight data.

background image mobile

Join the mailing list

Get the latest news and updates

Travelsure | ETHGlobal