01 / 10
← → ARROW KEYS TO NAVIGATE
MetaMask Smart Accounts Kit 1Shot API x402 Protocol
Autonomous Agent Delegation Network
The first trustless Machine-to-Machine delegation economy — where AI agents hire, scope, and pay each other with cryptographic spending guarantees.
Best A2A Coordination $1,500
Best Agent $1,500
Best x402 / ERC-7710 $1,500
// THE PROBLEM

AI Agents Have a Trust Crisis

// INCIDENT REPORT — REAL SCENARIO
A solo AI researcher ran 6 agent bots fetching market data and processing images. One midnight bug caused Bot #4 to loop its API calls. By morning, the entire $500 USDC research budget was gone. There was no way to limit what individual bots could spend.
FULL WALLET ACCESS
One bug or prompt injection — entire balance drained overnight.
VS
NO ACCESS AT ALL
Agent can't act autonomously. Humans must approve every action.
THE MISSING PRIMITIVE
There is no way to say "spend up to $10, only on these 2 APIs, only twice" to an autonomous agent.

Scoped · Cryptographic · Trustless

DelegAI introduces hierarchical delegation chains — one MetaMask permission grants scoped spending authority that cascades through agent layers, with each child mathematically unable to exceed its parent's limits.
ONE PERMISSION
User signs once. MetaMask ERC-7715 Advanced Permissions popup. 50 USDC · 5 calls · 24h expiry.
REDELEGATION CHAINS
Master Agent splits authority into sub-delegations. Workers receive narrower child scopes — cryptographically enforced.
M2M PAYMENTS
Workers autonomously pay for APIs via x402 micropayments and execute gaslessly via 1Shot — no ETH needed.
// KEY INSIGHT
Adding more agents makes the system SAFER, not riskier. Each delegation narrows scope further — constrained growth means the blast radius of any agent failure is bounded by cryptography, not trust.

How It Works

End-to-end in under 60 seconds
01
ROOT PERMISSION
User clicks "Start Delegation". MetaMask popup grants scoped authority.
ERC-7715
02
REDELEGATION
Master Agent creates sub-delegations for Data Worker & Exec Worker.
parentDelegation
03
x402 PAYMENT
Data Worker hits API, gets 402. Constructs PAYMENT-SIGNATURE, retries with proof.
0.01 USDC/call
04
GASLESS RELAY
Exec Worker submits UserOp via 1Shot. Gas paid in USDC — no ETH required.
1Shot Relay
05
SETTLEMENT
Live delegation tree, budget meters, SSE activity feed. Full chain <30s.
Live Dashboard
User ──[50 USDC · 5 calls]──▶ Master Agent ──[10 USDC · 2 calls]──▶ Data Worker + Exec Worker

Delegation Architecture

USER (EOA)
Alice · Sepolia
50 USDC
5 calls max · 24h expiry
LimitedCalls: 5
Erc20TransferAmount: 50 USDC
MASTER AGENT
Smart Account
20 USDC
4 calls max · sub-scoped
LimitedCalls: 4
Redeemer: ExecWorker addr
parentDelegation: hash
DATA WORKER
Smart Account
10 USDC
2 calls · x402 buyer
LimitedCalls: 2
Erc20TransferAmount: 10 USDC
EXEC WORKER
Smart Account
10 USDC
2 calls · 1Shot gasless
LimitedCalls: 2
Erc20TransferAmount: 10 USDC
Root authority (User EOA)
Sub-delegation (Master)
Leaf agents (Workers)

Technology Stack

MetaMask Smart Accounts Kit
v1.5.x · 18 integration points
toMetaMaskSmartAccount(Stateless7702) [EIP-7702]
createDelegation() + createOpenDelegation()
signDelegation() + hashDelegation()
encodeDelegations() + decodeDelegations()
createCaveatBuilder() — ScopeType + CaveatType
getSmartAccountsEnvironment() + verifyTypedData()
sendUserOperationWithDelegation() [ERC-7710]
erc7710BundlerActions() + erc7715ProviderActions()
18 / 18 integration points verified
x402 Protocol
@x402/express · @x402/evm · @x402/core
Seller side — paymentMiddleware()
Erc7710ExactEvmScheme validation
HTTPFacilitatorClient ↔ MetaMask
Buyer side — PAYMENT-SIGNATURE header
createOpenDelegation() for payment
Redeemer caveat → facilitator only
Autonomous 402 → pay → 200 retry loop
Both buyer AND seller implemented
1Shot Public Relayer
JSON-RPC · Gasless on Sepolia
relayer_getFeeData — Gas quote in USDC
relayer_send7710Transaction — Bundle submit
relayer_getStatus — Completion polling
No ETH required for agents
Gas paid from delegated USDC budget
On-chain settlement in <30 seconds
3 relay methods · full tx lifecycle

Prize Tracks

Track Why We Qualify Win Odds Prize
Best A2A Coordination 3-level redelegation — hardest feature, fewest competitors 30–60% $1,500
Best Agent Autonomous agents discover, purchase, and execute on-chain 12–20% $1,500
Best x402 / ERC-7710 Full buyer + seller implementation, not just one side 20–37% $1,500
Social Media Posts Dev journey posts @MetaMaskDev throughout build 17–50% $100×n
SDK Feedback Comprehensive feedback document submitted with entry High $100
TOTAL POTENTIAL $4,600+
Highest EV: A2A Coordination — redelegation creates a natural technical moat. Fewest teams expected to implement the full chain. Competing in 5/5 available tracks.

Why We Win

01
DEEPEST TECHNICAL IMPLEMENTATION
18 verified integration points, 3-level redelegation chain, x402 buyer + seller, all 3 1Shot relay methods. No other project is expected to implement this breadth.
02
NOVEL INTEGRATION PATTERN
No prior tutorial combines redelegation + x402 + agent orchestration. DelegAI creates the reference implementation for M2M delegation.
03
CONSTRAINED GROWTH INSIGHT
Reframes redelegation as a safety mechanism, not just coordination. More agents = narrower blast radius. A compelling narrative judges remember.
04
PRODUCTION QUALITY
TypeScript strict mode, 100% CI passing, 179 tests across 13 suites, live Vercel deployment, real-time dashboard — not just a script in a README.
05
FULL SDK SURFACE COVERAGE
Every MetaMask Smart Accounts Kit API integrated — judges can see the breadth at a glance.
createDelegation createOpenDelegation signDelegation hashDelegation encodeDelegations decodeDelegations getSmartAccountsEnvironment ScopeType CaveatType createCaveatBuilder verifyTypedData toMetaMaskSmartAccount sendUserOperationWithDelegation erc7710BundlerActions erc7715ProviderActions getFeeData sendTransaction getStatus

Live Demo

DELEGAI — COMMAND CENTER
$ delegai start --demo --track=a2a
Root delegation created
├─ budget: 50 USDC
├─ calls: 5 max
└─ caveats: LimitedCalls + Erc20TransferAmount
Data Worker sub-delegation
└─ parentDelegation: 0x7f3a…
Data Worker → GET /api/premium-data
← 402 PAYMENT-REQUIRED
Payment header constructed
← 200 OK · charged 0.01 USDC
relayer_getFeeData… 0.0008 USDC
relayer_send7710Transaction…
txHash: 0x9c2b…
Chain settled · 10.012 / 50 USDC used
$
DELEGATION DEPTH
3 Levels
User → Master → [Data, Exec] Workers
END-TO-END TIME
< 30s
Permission grant to on-chain settlement
ETH REQUIRED
Zero
Gas paid in USDC via 1Shot relay
LIVE on Sepolia Testnet
DEMO URL
delegai.edycu.dev
DELEGAI_DEMO=true — no wallet needed
The first trustless Machine-to-Machine delegation economy.
18 SDK APIs x402 Buyer + Seller 1Shot Gasless Relay 3-Level Delegation