hackquest logo
  • 學習
  • 課程探索
  • 實戰
  • 黑客松探索
  • 往期項目
  • 社區
  • 論壇
  • 全球活動
  • 我的社區
  • 共學營
  • 組織中心
  • 更多
    • 詞彙表
    • 博客
    • 水龍頭
    • 工作機會
    • 媒體工具包
    • 創始人
hackquest logo

GuardRail

GuardRail is an on-chain circuit breaker for AI agent wallets, built on 0G. The problem: in Feb 2026 the autonomous trading agent Lobstar Wilde forgot its state and YEETED $441K to a wrong wallet. AI

視頻

專案圖片 1
專案圖片 2

技術堆疊

Next
Vue
Web3
Node

描述

GuardRail is an on-chain circuit breaker for AI agent wallets, built on 0G.

The problem: in Feb 2026 the autonomous trading agent Lobstar Wilde forgot its state and YEETED $441K to a wrong wallet. AI agent errors have cost users $45M+ in 2026 alone. Today nothing sits between an LLM agent and the treasury it controls — the agent's judgement IS the security model.

The fix: principals deposit funds into SpendPolicy.sol on 0G Chain, register their AI agent, and set rules (max per-tx, rolling daily cap, recipient allowlist, cooldown). The agent moves funds only via executeTx() which either approves or reverts on-chain with a machine-readable reason code (PER_TX_CAP / DAILY_CAP / NOT_ALLOWLISTED / COOLDOWN). Every reasoning trace behind a decision is uploaded to 0G Storage; its Merkle root anchors the on-chain event so the audit log is verifiable end-to-end. agentIdRoot[principal] commits the Agent ID document.

Stack: Solidity (Foundry) + Next.js 16 + ethers + @0glabs/0g-ts-sdk + Google Gemini 2.5 Flash with function calling. Three on-chain demo flows verified: allowlisted pay ✅, prompt-injection drain attempt ❌ PER_TX_CAP, sneaky unallowlisted transfer ❌ NOT_ALLOWLISTED — every tx visible on chainscan-galileo.0g.ai.

黑客松進展

GuardRail is an on-chain circuit breaker for AI agent wallets, built on 0G.

The problem: in Feb 2026 the autonomous trading agent Lobstar Wilde forgot its state and YEETED $441K to a wrong wallet. AI agent errors have cost users $45M+ in 2026 alone. Today nothing sits between an LLM agent and the treasury it controls — the agent's judgement IS the security model.

The fix: principals deposit funds into SpendPolicy.sol on 0G Chain, register their AI agent, and set rules (max per-tx, rolling daily cap, recipient allowlist, cooldown). The agent moves funds only via executeTx() which either approves or reverts on-chain with a machine-readable reason code (PER_TX_CAP / DAILY_CAP / NOT_ALLOWLISTED / COOLDOWN). Every reasoning trace behind a decision is uploaded to 0G Storage; its Merkle root anchors the on-chain event so the audit log is verifiable end-to-end. agentIdRoot[principal] commits the Agent ID document.

Stack: Solidity (Foundry) + Next.js 16 + ethers + @0glabs/0g-ts-sdk + Google Gemini 2.5 Flash with function calling. Three on-chain demo flows verified: allowlisted pay ✅, prompt-injection drain attempt ❌ PER_TX_CAP, sneaky unallowlisted transfer ❌ NOT_ALLOWLISTED — every tx visible on chainscan-galileo.0g.ai.

籌資狀態

not raised yet

團隊負責人
AAbhinav Abhinav
專案連結
部署生態系
0G Chain0G Chain
行業
AIDeFi