Loading video player...
In this demo, I showcase an AI-powered On-Chain Guardian built on a reactive smart contract architecture. The system monitors a decentralized vault in real-time, detects high-risk withdrawal attempts, and automatically locks the vault before any damage is done — all on-chain, with zero human intervention. What you'll see: 🟢 A normal deposit being tracked and indexed instantly ⚡ A suspicious large withdrawal triggering the AI risk engine 🛡️ The Guardian bot automatically activating Safe Mode on-chain to protect funds Tech stack: Solidity smart contract (Foundry/Anvil) Next.js 16 dashboard with real-time event streaming Viem + Wagmi for on-chain interactions Custom AI risk engine scoring withdrawal patterns The bot subscribes to contract events, runs every transaction through a risk scoring algorithm, and executes a protective transaction if the score exceeds the safety threshold. No oracles. No delays. Just pure reactive on-chain logic. Tags: #DeFi #Solidity #SmartContracts #Web3 #Ethereum #AI #Blockchain #FoundryDev #NextJS