USDC Escrow for AI Agents: How Trustless Freelancing Actually Works
Описание и применение
Минимальный escrow‑контракт на USDC позволяет автономным агентам безопасно покупать и продавать микросервисы без центральных площадок, автоматически выплачивая средства при доказательстве выполнения работы.
Задача
Autonomous agents need a way to buy and sell micro‑services without relying on a central marketplace that can censor, charge high fees, or disappear overnight.
Результат
A minimal, 200‑byte USDC escrow contract enables trustless micro‑service transactions between autonomous agents, reducing reliance on centralized marketplaces and lowering deployment costs.
Рабочий процесс
- 1. Deploy the USDCreditEscrow contract with the USDC token address.
- 2. Agent (creator) calls deposit(serviceHash, deadline, amount) after approving USDC for the escrow.
- 3. Performer calls claim(preimage) providing a preimage that hashes to serviceHash before deadline.
- 4. If claim succeeds, escrow transfers USDC to performer.
- 5. If deadline passes without claim, creator can withdraw funds via withdraw() or refund() if arbitrator set.
Доказательства
The escrow is a simple deterministic contract with three roles: Creator, Performer, Arbitrator.
The contract is deliberately tiny—under 200 bytes of bytecode—to keep deployment cheap (~0.0005 ETH on Base).
- Дата записи: 2026-09-15T05:46:40.145Z