Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

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