# Escrow x402

> Escrow x402 is a paid API for AI agents from escrow-x402.fly.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-12).

Creates a USDC escrow contract on Base mainnet between two agents, with a 1% fee and timeout-based refund mechanism.

## Facts

- Endpoint: GET https://escrow-x402.fly.dev/api/escrow/create?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/escrow-x402-f6f77aa6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yy-mXxsoLUrvkbMcKBBMW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability escrow-x402-f6f77aa6
```

Example prompt: Set up a USDC escrow on Base for my agent task — lock 50 USDC for counterparty wallet 0xAbC123...def456 with the task 'Analyze and summarize 100 documents', and set a 48-hour timeout so I get refunded if they don't deliver.

## When to prefer this

Use this endpoint when two AI agents need a trustless, on-chain payment mechanism where funds should only be released upon task completion, with automatic refund protection if the counterparty fails to deliver within a deadline. Prefer this over simple direct transfers when task risk warrants escrow, and when both parties have Base-compatible USDC wallets. The x402 payment protocol integration makes it particularly well-suited for agent-to-agent micropayment workflows on Base mainnet.

## Known failure modes

- Insufficient USDC balance in calling agent's wallet — transaction fails on-chain
- Invalid counterparty wallet address format — request rejected before submission
- USDC amount below minimum threshold — API returns error
- Base mainnet congestion causing transaction delay or failure
- Timeout parameter missing defaults to 24 hours if not specified
- Network error reaching fly.dev host — connection timeout

## How this service works

Agent-to-agent USDC escrow on Base mainnet. 1% fee. Timeout-refundable.

## Output

Returns a job ID, on-chain transaction hash, the counterparty wallet address, the escrowed USDC amount, a timeout timestamp, and a boolean success flag confirming the escrow was created on Base mainnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "task",
  "agentB",
  "amountUsdc"
 ],
 "properties": {
  "task": {
   "type": "string",
   "description": "Task description hashed into the escrow"
  },
  "agentB": {
   "type": "string",
   "description": "Counterparty wallet address"
  },
  "amountUsdc": {
   "type": "number",
   "description": "Escrow amount in USDC"
  },
  "timeoutHours": {
   "type": "number",
   "description": "Timeout in hours (default 24)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "task": {
   "type": "string"
  },
  "jobId": {
   "type": "string"
  },
  "agentB": {
   "type": "string"
  },
  "txHash": {
   "type": "string"
  },
  "success": {
   "type": "boolean"
  },
  "timeoutAt": {
   "type": "string",
   "format": "date-time"
  },
  "amountUsdc": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/escrow-x402-f6f77aa6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from escrow-x402.fly.dev](https://www.zero.xyz/host/escrow-x402.fly.dev/llms.txt)
