UniversalEscrow
DocumentationAPI reference
Escrows

Prepare funding transaction

Returns unsigned transaction(s) (calldata) for the buyer's own wallet to sign and broadcast — the backend never signs or holds a private key.

POST

https://testnet.universal-escrow.xyz/v1/escrows/{escrowId}/funding-intent

This call changes nothing on the escrow; the escrow does not advance until the resulting hash is registered and confirmed on chain. Prerequisite: the escrow must be in a pre-funding state (e.g. AWAITING_FUNDING). Body: buyerWallet (optional address) — required when the escrow was created without a buyer, where it is bound as the buyer (replaceable until funding is submitted); must match when the buyer was fixed at creation (409 buyer_wallet_mismatch).

Authorizations

Authorizationstringheaderrequired

Bearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the escrows:write scope.

How authentication works

Path Parameters

escrowIdstringrequired

Body

application/json
buyerWalletstring

The wallet that will fund the escrow. Required while the escrow has no buyer; for a bound escrow it must match the bound buyer unless the buyer was only provisionally bound at checkout and nothing has been submitted yet.

Response

201 · EscrowIntent · application/json

Unsigned transactions to sign in order. The escrow did not move.

escrowIdstringrequired
transactionsTransactionRequest[]required

Transactions to sign, in order.

statusEscrowStatusrequired
expiresAtstring

When the embedded authorization expires. RFC 3339.

operationIdstring

The settlement operation recorded at REQUESTED; the escrow itself did not move.

expectedRecipientsobject

Who this settlement pays, keyed by role (seller, feeRecipient, buyer). Absent on funding intents.