ChainPilot

DeFi safety, simplified. Check risks. Trade safer. Just chat.

ChainPilot

Created At

ETHGlobal Cannes 2026

Project Description

ChainPilot is a DeFi safety agent built for people who've never used DeFi before. Users just chat — "Is USDC safe?" or "swap 0.1 ETH to USDC" — and ChainPilot automatically scans the token across six scored dimensions before any trade happens. The safety score uses cross-checking logic — for example, a mintable contract isn't automatically penalized if the source code is public and auditable. Three independent signals (liquidity, fake token, blacklist) can each block a trade on their own. Seven hard-coded rules enforce safety at the code level — the AI understands and explains, but it can never override these rules. Dangerous tokens trigger a full-screen block with a cooldown timer. Slippage is dynamically tied to the safety grade, not a fixed default. Token approvals use BigInt math capped at 110% — never infinite. Swap quotes come from Uniswap's Trading API. ENS is built in as a trust layer — identity cards with avatar and social links, not just address resolution. The whole interface works in English and Chinese. ChainPilot is non-custodial — it never touches your keys. It's not competing with exchanges. It's the safety layer that sits before every trade, so beginners feel safe enough to start.

How it's Made

The frontend is React + Vite + Tailwind CSS with wagmi and RainbowKit for wallet connection. Security data comes from two sources — GoPlus API for on-chain risk flags (honeypot, tax, permissions, holders) and CoinGecko API for market cap. But raw API data isn't enough. A field like "mintable" means completely different things for USDC vs a scam token — so I built a cross-validation matrix that checks mintable status against open-source status to score them correctly. I also catch stealth honeypots that GoPlus misses: if sell_tax simulation fails while buy_tax returns normally, it gets flagged — something no existing tool does out of the box. Any token can be scanned, not just popular ones — CoinGecko Search API acts as a real-time fallback for tokens not in the hardcoded list of 35+. Warning signals from the mine detector actually penalize the score (-10 points each), and 2+ warnings trigger a grade downgrade. Three independent binary signals (liquidity, fake token, blacklist) can each block a trade on their own. Seven security rules are hard-coded in JavaScript — the AI layer (Gemini) handles natural language and explains risks in Chinese and English, but has zero control over safety decisions. Swap quotes come from Uniswap V3 on-chain quoter with fallback rates, proxied through Vercel serverless functions. Slippage isn't a fixed default — it's dynamically tied to the safety grade (A=0.5%, C=1%, F=blocked). Token approvals use pure BigInt arithmetic (amount * 110n / 100n) to avoid precision loss — never infinite approvals. ENS is integrated through viem — reverse resolution shows your .eth name automatically, and typing any .eth name returns an identity card with avatar and social links from text records. Scan history, block count, and stats persist in localStorage. The UI is inspired by Richard Mille mechanical watches . The hardest part was designing the safety score formula itself — I spent a lot of time stress-testing edge cases, fixing scoring bugs (USDC was originally getting penalized for being mintable), and building cross-validation logic that no existing tool provides.

background image mobile

Join the mailing list

Get the latest news and updates

ChainPilot | ETHGlobal