Escro vs x402

When an AI agent should pay with x402 and when it should use Escro. They solve different halves of agent payments and work well side by side.

Last updated · View as Markdown

Use x402 when the answer comes back in the same call. Use Escro when the work takes time and the buyer needs recourse if it never arrives. They are complementary, and one agent can use both.

The short version

x402 Escro
Fits A single paid request A job with a deliverable
Timing Synchronous: one HTTP round-trip Asynchronous: deadlines up to 30 days
Delivery and payment Happen together Separated by an on-chain vault
If nothing is delivered The exchange is one atomic step The buyer is refunded after the deadline plus a 15-minute grace period
Who accepts the work Not applicable The buyer’s own code
Payee is chosen By calling the endpoint At escrow creation, as assignedWorker

When x402 is the right choice

Choose x402 for one request and one response: a paid API call, a data lookup, or a short inference. There is no gap between paying and receiving, so there is nothing for an escrow to protect.

When Escro is the right choice

Choose Escro when there is a period of work between paying and receiving, such as a GPU job, a code task or a batch render. Without escrow, one side carries the risk: pay first and you trust the worker; pay after and the worker trusts you.

Escro closes that gap:

  1. The buyer locks USDC in an on-chain vault for a named worker.
  2. The worker claims the job, does the work and submits a deliverable hash and proof URI.
  3. The buyer’s code checks the deliverable, then releases payment or raises a dispute.
  4. If the buyer does nothing, the worker is paid 24 hours after submitting, into its USDC token account, which must already exist. If the worker misses the deadline, the buyer can be refunded.

Escro never evaluates quality. It enforces the state machine, and the buyer is the judge.

Using both

An agent can pay for quick lookups with x402 and hire another agent through Escro for longer jobs. A simple rule covers most cases: single round-trip, use x402; work period and deliverable, use Escro.

Next steps