Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-19
Browse: SET Crypto API Suite

SET Escrow

Status: current as of 2026-11-19.

A milestone escrow between two businesses, paid in USDC. The buyer pays into a Safe (a smart-contract wallet, Safe 1.4.1) owned by the buyer, the seller and, if both want one, an arbiter they both name in the terms they sign. Two owners' signatures move the money: 2 of 2 without an arbiter, 2 of 3 with one. SET computes the Safe's address, records the terms and each party's signature, screens the parties and destinations, prepares each release or refund as a Safe transaction for the owners to sign, and reads the result back from the chain.

Switched off; available on request. SET Escrow is switched off for this deployment and, once switched on, per account. While it is off each call answers 503 escrow_disabled; while it is off for your account, 403 escrow_off. GET /v1/capabilities answers features.escrow. Ask SET to switch it on for your account.

Who holds what

PartyHoldsDoes
Buyer, seller, arbiterTheir own wallet keys (each an EVM address the party controls)Own the Safe. Accept the terms, sign each release or refund, and send the signed transaction from their own wallet
SETNo key to the SafeNever an owner or a signer, never deploys the Safe with a key of its own, never broadcasts and never holds the money. Returns the ready-to-send call once two owners have signed

There is no relay: SET hands back the transaction, and a party sends it.

Limits

  • USDC only, on Base, Ethereum, Arbitrum, Optimism, Polygon or Avalanche C-Chain.
  • Signatures: 65-byte secp256k1 EIP-712 signatures only. Not supported: passkey (P-256) owners, contract owners (EIP-1271), and Safe's eth_sign form.
  • 1 to 20 milestones per escrow.
  • Funding and execution are read when the escrow is read (GET /v1/escrows/{id}), not in the background.
  • Journal entries and SET Close follow the read. A release or refund's journal entry and its SET Close records appear once the escrow is read and the execution found (below).

How it works

  1. Open. POST /v1/escrows with the network, buyer, seller, optional arbiter, 1 to 20 milestones in USDC, the Travel Rule parties (travelRule: the buyer business as originator, the seller business as beneficiary, each a name and an ISO 3166-1 alpha-3 country) and, if you want, your own invoice, externalId and ledgerSide (buyer or seller: which party your business is, for its journal; see Journal entries and SET Close). Every address is screened against OFAC's list, and the asset is checked against your asset policy and SET's cutoff for stablecoins not recorded as permitted. The answer carries safe.address (the Safe's counterfactual address) and acceptance, the typed data each party signs.
  2. Accept. Each party's signature over the terms: POST /v1/escrows/{id}/accept (approve scope). When all have accepted, the escrow is accepted.
  3. Fund. The buyer pays the total to safe.address. Reading the escrow finds the balance and moves it to funded.
  4. Submit. The seller signs an evidence hash for a milestone: POST /v1/escrows/{id}/milestones/{milestone}/submit. SET stores only the hash.
  5. Propose the release. POST /v1/escrows/{id}/milestones/{milestone}/propose_release: a Safe transaction paying the seller's wallet, the seller's Cash-Out Address, or, if the milestone is prefunded, the provider's repayment address. One open proposal per escrow.
  6. Sign. Each owner's signature over the Safe transaction: POST /v1/escrows/{id}/signatures (approve scope). At two signatures the proposal is ready and the answer's execution is the call to send.
  7. Send. A party sends it from its own wallet. Reading the escrow finds the execution and marks the milestone released. When every milestone is released or refunded, the escrow is completed.

Also:

  • Dispute. POST /v1/escrows/{id}/dispute: the buyer or the seller signs an evidence hash. A proposal still waiting for signatures is withdrawn; one two owners have already signed stays, because any party can send it.
  • Refund. POST /v1/escrows/{id}/propose_refund: one Safe transaction returning every milestone not released or prefunded to the buyer.
  • Cancel. POST /v1/escrows/{id}/cancel, only while nothing has been paid in.
  • Travel Rule record. GET /v1/escrows/{id}/travel_rule: the parties' names and countries are sealed and never returned; the answer gives their presence, each party's wallet attestation (when SET verified its acceptance signature) and a SHA-256 commitment to compare with your own copy.

Journal entries and SET Close

Which side you are. The business that opens an escrow may be the buyer, the seller, or neither (a platform running escrows for others). SET cannot tell which, so you say so in ledgerSide on POST /v1/escrows: buyer or seller. It is stored on the escrow and shown on every escrow; it is not part of the terms the parties sign.

  • An escrow that names one of your invoices (invoice) is yours as the seller: ledgerSide defaults to seller, and ledgerSide: "buyer" with an invoice answers 400 ledger_side_invalid. Any value other than buyer or seller answers the same code.
  • Without a side, SET writes no journal entry for the escrow. SET Close still lists its releases and refunds.

What becomes an entry. Only a release or refund whose Safe transaction executed: SET found the Safe's execution event when the escrow was read (GET /v1/escrows/{id}), or, in the sandbox, the confirm call executed it. The entry is written in the same write as the settlement, so a second read or a second confirm writes nothing more. A failed execution moves no money and writes no entry. Each entry raises journal_entry.created.

The entry types are escrow_release and escrow_refund, in GET /v1/journal_entries. payment is the proposal's id; references carry the escrow, proposal, milestone, side, network, asset, Safe, destination, destination kind, safeTxHash and source (chain, or simulator in the sandbox). Amounts are the escrow's USDC at par in USD, as SET Invoices' stablecoin entries are.

SideMovementDebitCredit
sellerrelease to its own walletstablecoin_walletreceivable
sellerrelease to its Cash-Out Addressclearingreceivable
sellerrelease to a prefunding provider's repayment addressprefunding_payablereceivable
buyerrelease (any destination)payableescrow_funds
buyerrefund to its walletstablecoin_walletescrow_funds

Name your accounts for the four new roles, stablecoin_wallet, escrow_funds, payable and prefunding_payable, with PUT /v1/ledger_mapping; clearing and receivable are SET Invoices' own. These are labels, not accounting advice.

What SET does not book:

  • Funding. The buyer's payment into the Safe is the buyer's own transaction from its own wallet. The buyer books it; SET only reads that the Safe holds the amount.
  • A refund on the seller's side. None of the seller's money moved.
  • A prefunding advance. The provider pays it outside SET, and no chain read confirms it. The seller books the advance and the fee. When the prefunded milestone is released to the provider's repayment address, the seller's entry is Dr prefunding_payable, Cr receivable.
  • The bank leg of a release to a Cash-Out Address. The release books clearing. The payment to your bank arrives as that address's own Cash-Out payment, which SET books only when it is matched to an invoice; for an escrow release, book the bank leg from your bank statement (SET Close lists it as a cash_out_payment). Do not also match that payment to an invoice by hand, or the receivable is booked twice.
  • The invoice's state. An escrow that names an invoice links the entry to it, but a release does not mark the invoice paid.

In SET Close. SET Close lists your own escrows' executed releases and refunds as payment types escrow_release and escrow_refund. Each has a provider record (SET's chain read, trust verified; in the sandbox the simulator's, trust provider, chain sandbox_not_applicable) and, when your side writes an entry, a book record compared on net. A release is money in for the seller and out for the buyer; a refund is money in for the buyer. Three parts of Close do not apply:

  • No bank record. A Safe transfer has no bank leg of its own, so there is no rail record and no missing_rail exception.
  • No separate chain record. SET finds the execution by safeTxHash and keeps no transaction hash, so an uploaded line cannot pair with an escrow movement by hash.
  • No position check on the Safe. The Safe belongs to the parties, not to your business.

Accounting connectors. Escrow entries post through the accounting sync like every other entry. QuickBooks needs a vendor on an Accounts Payable line and SET creates none, so a buyer's entry whose payable maps to an Accounts Payable account is skipped with vendor_required and never sent: map payable to another account and retry, or book it by hand.

Without SET

GET /v1/escrows/{id}/safe_bundle answers the owners, threshold, salt nonce, deployment call, every proposal and the owners' signatures, so the parties can run the escrow without SET. format=safe answers the open proposal as a Safe Transaction Builder file; Safe's own app gives that file its own nonce, so signatures made through SET do not carry over to it.

Sandbox

On staging, POST /v1/sandbox/escrows/{id}/fund funds an accepted escrow and POST /v1/sandbox/escrows/{id}/milestones/{milestone}/confirm executes a ready proposal. No money moves.

Events

escrow.created, escrow.accepted, escrow.funded, escrow.milestone_submitted, escrow.release_proposed, escrow.refund_proposed, escrow.proposal_ready, escrow.milestone_released, escrow.refunded, escrow.proposal_failed, escrow.disputed, escrow.cancelled, escrow.completed. They carry ids, addresses, hashes and amounts only. See Webhooks and events.

Next

Sources

Written on 2026-11-18 from the wallet's escrow documentation (docs/escrow.md), routes and OpenAPI document at release 22a44bcb, where both switches are off in staging and production. Journal entries and SET Close added on 2026-11-19 from the wallet's docs/escrow.md, worker/lib/escrow-journal.ts, worker/lib/close.ts and worker/routes/api-accounting.ts at release fda1fc6a; SET Escrow is still switched off in both environments.

Changes

  • 2026-11-18: Docs, OpenAPI and Postman synced to the wallet at: SET Escrow journal entries and SET Close.
  • 2026-11-18: OpenAPI, Postman and docs re-synced from the wallet at; Crypto Suite /v1 calls follow the wallet's marks.