UniversalEscrow
DocumentationAPI reference

Introduction

Universal Escrow adds "Pay with crypto" to your checkout, with buyer protection built in. The buyer locks USDC in an on-chain escrow, and it pays your seller directly when the buyer releases it. You never hold the funds, and neither do we.

  1. 0:00Escrow payments: the buyer pays and the contract holds it
  2. 0:05Release, refunds and disputes: where the money goes
  3. 0:11Developer tools: webhooks to your server

Pre-release: not for real money. The escrow contract has not been independently audited. Build and test with test keys; do not put real value through it yet. The roadmap says what is and isn't ready.

The platform has three building blocks: escrow payments to take the money, release, refunds and disputes to settle it, and developer tools to run it all from your systems.

Escrow payments

Take a payment that is held by a smart contract until the deal is done.

  • Create one escrow per order from your server, or a payment link from the dashboard without code.
  • Send the buyer to the hosted checkout, or open it in a popup from your own page with the pay button.
  • Split a job into 2–20 stages that are funded and released one at a time.

Release, refunds and disputes

Decide where the money goes once it is held — and make sure it gets there.

  • The buyer releases to the seller; the seller can refund at any time; the buyer can refund after the refund lock.
  • Disputes are decided by your organization in the dashboard and executed on chain by the platform's arbiter.
  • Pay sellers only to wallets they proved they control, so a typo cannot misdirect a payout.

Developer tools

Everything you need to run the integration in production.

  • Signed webhooks for every status change, with retries and replay.
  • Test and live API keys with scopes, a request log, and an integration checklist in the dashboard.
  • A typed TypeScript SDK and an OpenAPI document for every other language.

What you can build

You want to…What you useGuide
Pay for an order on your marketplaceOne escrow per order, hosted checkout, escrow.funded webhookAccept a payment
Keep the buyer on your checkout pagePay with crypto button in a popupPay with crypto button
Pay a freelancer stage by stageA milestone group of 2–20 escrowsMilestones
Pay many sellers safelyVerified seller wallets, paid by idVerified seller wallets
Take a payment without a developerA payment link from the dashboard (test payments today)Payment links
Use your own wallet integrationFunding, release and refund intents signed by your appDriving the transactions yourself

New here? The quickstart takes you from an API key to a funded escrow in four steps. Looking for your industry? See the use cases for marketplaces, freelance platforms, digital assets and agencies.

How the money moves

Your server creates an escrow for an order with your API key. The buyer opens its checkout, connects a wallet and funds it. When the payment is confirmed on chain you receive a signed escrow.funded webhook and mark the order paid. When the work is accepted, the buyer releases the escrow and the contract pays the seller.

One order, start to finish
Buyer                 Your server                        Escrow platform           Chain
  | "Pay with crypto"   |                                    |                        |
  |-------------------->| POST /v1/escrows  (API key)        |                        |
  |                     |----------------------------------->|                        |
  |                     |<------ esc_…, checkoutUrl ---------|                        |
  |<-- checkout link or popup button --------------------------->|                        |
  |  connect wallet, approve + fund USDC ------------------------------------------------>|
  |                     |<------ webhook escrow.funded ------|<-- confirmed on chain --|
  |                     | verify signature, mark order paid  |                        |
  |  work delivered: buyer signs release on the hosted release page -------------------->|
  |                     |<------ webhook escrow.released ----|   seller paid directly |

Three rules shape every integration. Release is the buyer's: their wallet signs it, and neither you nor we can release on their behalf. The fee is 1%, taken from the seller's side on release, so the seller receives 99%; refunds are free. Only the webhook proves payment: a redirect, a browser event or a transaction hash is a claim, not evidence.

Digital goods: use an instant payment. Create the order or payment link with settlementMode: "INSTANT" and there is no release step. The seller and the 1% fee are paid in the buyer's payment transaction, the order goes straight to PAID, and you deliver on the escrow.paid webhook. The buyer has no dispute and no platform refund; you refund from your own wallet. See instant payments.

Base URL and authentication

$ESCROW_API_BASE/escrows        # the API host + /v1, issued with your key
Authorization: Bearer esc_test_<prefix>_<secret>

Your server calls the API with a secret API key; the base URL for your environment is issued with it. Keys never go in a browser. See authentication and the API reference.

Coming from a card provider

If you have integrated Stripe or a similar provider, the shapes are the same:

Card providerEscrow platform
PaymentIntentEscrow (esc_…)
client_secret in the browserNothing secret: the buyer gets the escrow's checkoutUrl or the pay button
Payment ElementThe hosted checkout page
metadata.orderIdexternalReference (unique per organization) and metadata
idempotency_keyIdempotency-Key request header
Stripe-SignatureEscrow-Signature header, HMAC-SHA256
payment_intent.succeededescrow.funded
charge.refundedescrow.refunded
charge.dispute.closedescrow.disputed, then escrow.resolved
Test-mode keysesc_test_… API keys
Amount in centsUSDC atomic units as a string: "1000000" is 1 USDC
Payout to your bankPaid on release, straight to the seller's wallet

Test and live

Every API key belongs to one environment: esc_test_… or esc_live_…. Escrows, webhook endpoints and verified seller wallets created with a test key are invisible to a live key and the other way round, and the environment field on every escrow says which one it is. Check it in your webhook handler before marking an order paid.

What is not available yet

These are the gaps between this platform and a card checkout today, and what to do instead.

Not availableWhat to do today
Your own commission inside the escrowOnly the 1% platform fee is taken. Gross up the amount or invoice your fee separately.
Partial release, split dispute outcomesA payment is released or refunded whole. Pay in stages with milestones.
Release by you or automaticallyOnly the buyer's wallet can release. Send your own reminders with the release link.
Paying by card, or without cryptoThe buyer needs USDC and a little ETH for gas in their own wallet.
Gas paid for the buyerThe buyer pays network fees.
Smart-contract wallets (Safe, Coinbase smart wallet)Ordinary wallet accounts only, for buyers and for seller verification.
Returning the buyer to your site automaticallyThe buyer clicks a link back to your successUrl or cancelUrl.
Live payment links from the dashboardDashboard links are test payments; create live escrows with a live key.
SDK on the public npm registryThe SDK is distributed as a package file.
Other tokens and chainsUSDC only, on one chain.

Dashboard and help

The dashboard is where you manage API keys, webhook endpoints, payment links, disputes, your team and the request log (dashboard tools). Asking for help? Quote the request id — error.requestId from an error response, or the id in the request log — and we can find the exact request.