hackquest logo

DeleGate

Hire an AI agent to handle on-chain chores. Sign one ERC-7710 delegation with a daily USDC cap and 30-day expiry. The agent reasons via LLM, pays for data via x402, and trades on Sepolia.

视频

项目图片 1
项目图片 2
项目图片 3
项目图片 4

技术栈

Next
Web3
Ethers
React
viem
wagmi
TypeScript
ERC-7710

描述

## What is DeleGate?

DeleGate lets you hire an AI agent to handle on-chain chores — trading, rebalancing, claiming airdrops, paying subscriptions — without ever giving up your keys. You sign one ERC-7710 delegation with a daily budget, a 30-day expiry, and an allowlist of contracts. The agent does the rest. The EVM enforces the rules.

## The problem

Every "AI agent" trading product today either:

1. Asks you to hand over your seed phrase or private key (terrifying), or

2. Makes you co-sign every single transaction (defeats the point), or

3. Runs as a custodial service (you don't really own the keys).

There's been no clean middle path — until ERC-7710 + EIP-7702 made it possible to grant scoped, time-bounded, revocable authority to an agent without ever exposing your keys.

## How DeleGate works

1. Pick a preset. Trader (USDC↔ETH on Uniswap), Rebalancer, Claimer, or Subscriber. Each comes with a sensible default budget and allowlist.

2. Sign one delegation. A single MetaMask popup. Daily USDC cap erc20Period caveat), expiry timestamp caveat), allowed targets allowedTargets caveat). The EVM enforces every limit — DeleGate cannot override them.

3. Walk away. The agent reasons through an LLM every ~7 seconds, pays for its own market data using x402 micropayments (EIP-3009 USDC transferWithAuthorization), and broadcasts real on-chain transactions on Ethereum Sepolia. Every decision is logged with chain-of-thought, the x402 fee paid, and a clickable Etherscan link.

## What's actually live and on-chain

- Agent EOA: 0x400377…8779](https://sepolia.etherscan.io/address/0x400377a07169be08f98546B63B5fE86B66328779) — a Stateless7702 Smart Account, funded with 0.1 SepETH

- First live agent transaction: 0x34da678b…](https://sepolia.etherscan.io/tx/0x34da678bafcd3d6bfe59c1fb789dab03f06e40f1c2beb438c1648f8d70ff1e11) — buy/sell intent encoded in calldata, broadcast every ~7s while the dashboard runs

- Live dapp: https://delegate-hackathon.vercel.app

- Demo video: https://youtu.be/Dq91LsCRybM

## A2A coordination

DeleGate also implements a Coordinator → Worker redelegation primitive at /a2a. A parent "Coordinator" agent receives a $1000/day delegation, then dispatches scoped sub-delegations to specialised "Trader", "Claimer", and "Subscriber" workers — each strictly within the parent's authority. Visit /a2a to see the worker fleet sign attestations live.

## Tracks claimed (honestly)

| Track | Evidence |

|---|---|

| Best x402 + ERC-7710 | src/lib/x402.ts, /api/seller/price accepts EIP-3009 sigs |

| Best Smart Accounts Agent | Real Sepolia broadcast every Buy/Sell decision |

| Best A2A Coordination | /a2a worker fleet with redelegation |

| Best Social Media | X thread tagging @MetaMaskDev |

| Best Feedback | 3 GitHub issues filed: MetaMask Smart Accounts Kit #247, 1Shot API Examples #1, Venice api-docs #264 |

## Honest limitations

We document our shortcuts publicly in [notes/track-coverage.md](cci:7://file:///c:/Users/sithu/delegate/notes/track-coverage.md:0:0-0:0):

- The deployed AI runs Groq via OpenAI-compatible API (not Venice AI) — provider-agnostic, one env var to switch. We do not claim the Venice track.

- The 1Shot relayer integration is a code path, not the active broadcast route — we use raw RPC for speed of iteration. We do not claim the 1Shot track.

- The /api/seller/price x402 verifier accepts well-formed EIP-3009 sigs but doesn't settle through Coinbase's facilitator yet.

These are documented choices, not hidden stubs.

## Tech stack

- Smart accounts: MetaMask Smart Accounts Kit (Stateless7702) + ERC-7710 + ERC-7715 caveats

- Frontend: Next.js 15 (App Router), viem, wagmi, Tailwind, shadcn/ui

- AI: OpenAI-compatible client (Venice / Groq / OpenAI swappable via env)

- Payments: x402 + EIP-3009 USDC transferWithAuthorization

- Network: Ethereum Sepolia 11155111); chain swappable via NEXT_PUBLIC_CHAIN_ID

- Hosting: Vercel

- License: MIT

本次黑客松进展

Built end-to-end during the hackathon window:

- Landing page with 4 agent presets (Trader / Rebalancer / Claimer / Subscriber)

- ERC-7710 delegation signing flow with daily USDC cap, 30-day expiry, and allowlist of contracts (USDC, WETH, Uniswap V3 SwapRouter02)

- Live dashboard with chain-of-thought reasoning, x402 micropayment indicators, and a real-time decision log

- Real on-chain agent activity on Ethereum Sepolia — every Buy/Sell decision broadcasts a real transaction with intent encoded in calldata. First live tx: 0x34da678b...

- /a2a page demonstrating Coordinator → Worker redelegation (parent agent dispatches to child sub-agents within its own scope)

- /api/seller/price endpoint accepting EIP-3009 USDC transferWithAuthorization signatures (x402 protocol) so the agent pays for its own market data

- Provider-agnostic LLM client supporting Venice AI, Groq, OpenAI-compatible endpoints

- /fund self-service page that auto-switches the connected wallet to the right chain and lets you fund the agent in one click

- Honest "track-coverage" doc + 3 GitHub feedback issues filed (MetaMask Smart Accounts Kit #247, 1Shot API Examples #1, Venice api-docs #264)

- 60-second demo video walkthrough on YouTube

Tech stack: Next.js 15, viem, wagmi, MetaMask Smart Accounts Kit (Stateless7702), Tailwind, shadcn/ui. Deployed on Vercel.

融资状态

Pre-fundraising. DeleGate was built solo for the MetaMask Smart Accounts Kit × 1Shot × Venice AI Dev Cook-Off as a fully open-source MIT project. No tokens, no equity round. Open to grants, ecosystem partnerships, and follow-on hackathons.

队长
SSithu Nyein
项目链接
部署生态
EthereumEthereum
赛道
DeFiAIInfra