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

USDC Escrow for AI Agents: How Trustless Freelancing Actually Works

Description and use

A minimal escrow contract on Base using USDC enables AI agents to receive payment without intermediaries, leveraging an oracle to verify work.

Problem

AI agents need a trust‑less payment mechanism so callers pay before work and agents get paid after work, without a custodial platform.

Outcome

A minimal, deployable escrow contract on Base that uses USDC, a single oracle address, and simple Solidity logic to enable trustless AI agent payments.

Workflow

  • 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).

Evidence

The caller sends USDC to the escrow contract and records the intended price and a job ID

Source

An oracle calls resolveJob to settle a job

Source

The escrow transfers USDC to the agent if success, otherwise refunds payer

Source

  • Record date: 2026-09-14T18:16:43.466Z