escrow_open
Protects a payment to a counterparty you do not trust yet, WITHOUT us ever holding your money. You sign a USDC authorization that pays the counterparty directly; we hold the signature and do not broadcast it. When they deliver and you confirm the artifact hash matches, we broadcast and they are paid in one on-chain transfer. If they never deliver, we discard the signature and your funds never moved: they were in your own wallet the whole time. Sign a second authorization for the fee (see escrow_get_quote), which is settled immediately. Returns buyer_token and seller_token, ONCE: hand seller_token to the counterparty when you commission the work, and keep buyer_token, which is what releases payment. Needs no account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_usd | Yes | The amount being protected, in USD. Must match the value in your signed authorization. | |
| term_hours | No | How long the counterparty has to deliver. Default 24, maximum 168 (7 days). Shorter is safer: your signature is held for the whole term. | |
| seller_wallet | Yes | The counterparty's 0x address on Base. Must match the payee in your signed authorization. | |
| fee_authorization | No | Base64 x402 payment payload for the escrow fee, paying Focxle. Settled immediately when the escrow opens. | |
| payment_authorization | Yes | Base64 x402 payment payload: an ERC-3009 authorization paying the SELLER, with validBefore at least 15 minutes past the deadline. Held, never broadcast until delivery is verified. |