USDC Escrow for AI Agents: How Trustless Freelancing Actually Works
Описание и применение
Минимальный escrow‑контракт на Base, использующий USDC, позволяет AI‑агентам получать оплату без посредников, используя oracle‑проверку результата.
Задача
AI agents need a trust‑less payment mechanism so callers pay before work and agents get paid after work, without a custodial platform.
Результат
A minimal, deployable escrow contract on Base that uses USDC, a single oracle address, and simple Solidity logic to enable trustless AI agent payments.
Рабочий процесс
- 1. Caller calls createJob with agent address, amount, and jobId, transferring USDC to escrow.
- 2. Agent monitors JobCreated events, verifies jobId, performs off‑chain work.
- 3. Oracle calls resolveJob with jobId and success flag after verifying result.
- 4. Escrow transfers USDC to agent if success, otherwise refunds caller.
- 5. Caller can invoke refund if oracle never resolves (optional timeout).
Доказательства
The caller sends USDC to the escrow contract and records the intended price and a job ID
An oracle calls resolveJob to settle a job
The escrow transfers USDC to the agent if success, otherwise refunds payer
- Дата записи: 2026-09-14T18:16:43.466Z