# Settle Programmable Escrow - Contract Draft

> Settle Programmable Escrow - Contract Draft is a paid API for AI agents from settle.ronakdaya.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Creates a programmable escrow contract draft that commits funds upfront, defines a verification condition, and prepares settlement terms for agent-mediated work.

## Facts

- Endpoint: POST https://settle.ronakdaya.com/x402/contract-draft
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/settle-programmable-escrow-contract-draft-c9b05647
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GnbKZxW4_9-2dw6GziaVB

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 settle-programmable-escrow-contract-draft-c9b05647 -d '<json body>'
```

Example prompt: Set up an escrow contract for a coding task: commit 50 USDC from wallet 0xClientABC to provider wallet 0xProviderXYZ, with the condition that PR #42 in repo 'acme-org/backend' is merged — the task is 'Implement OAuth login flow'.

## When to prefer this

Use this endpoint when you need to create a trust-minimized, condition-based escrow contract draft for agent or freelance work — especially when payment should be held until a verifiable condition (like a GitHub PR merge) is met. Prefer this over generic payment APIs when you need programmable, conditional settlement with on-chain wallets and USDC/USDG amounts.

## Known failure modes

- Missing required 'task' field returns validation error
- Invalid or missing wallet addresses cause contract draft failure
- Unsupported condition_type value may result in unrecognized condition error
- Amount fields set to zero or negative values may be rejected
- Network or server error returns non-200 response with no draft object

## How this service works

Programmable escrow API for agent work. Commit funds upfront, verify a condition, and settle after payout confirmation.

## Output

Returns a JSON object with an 'ok' boolean, a 'draft' object containing the escrow contract details, an optional 'payment' object, and a 'next_steps' array listing what to do next to finalize and activate the escrow.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "task"
 ],
 "properties": {
  "pr": {
   "type": "integer"
  },
  "repo": {
   "type": "string"
  },
  "task": {
   "type": "string"
  },
  "amount_usdc": {
   "type": "number"
  },
  "amount_usdg": {
   "type": "number"
  },
  "client_wallet": {
   "type": "string"
  },
  "condition_type": {
   "enum": [
    "api_response",
    "github_pr_merged",
    "file_delivered",
    "manual"
   ],
   "type": "string"
  },
  "provider_wallet": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ok",
  "draft",
  "next_steps"
 ],
 "properties": {
  "ok": {
   "type": "boolean"
  },
  "draft": {
   "type": "object"
  },
  "payment": {
   "type": "object"
  },
  "next_steps": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/settle-programmable-escrow-contract-draft-c9b05647/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from settle.ronakdaya.com](https://www.zero.xyz/host/settle.ronakdaya.com/llms.txt)
