More Stories
Back to Blog
Arrow

How smart-contract escrow works, step by step: who holds what at each moment

Team BlockX
November 16, 2026
How smart-contract escrow works, step by step: who holds what at each moment

Key takeaways

  • Escrow solves one problem: who moves first. The seller's crypto is locked before the buyer pays, so neither side has to trust a stranger with the first move.
  • In smart-contract escrow, code holds the crypto. The contract releases funds only under the rules written into it, not because a person or company decides to move them.
  • The bank leg sits outside the contract. The contract cannot see a dirham transfer. The seller still has to confirm the payment in their own banking app.
  • Escrow does not protect against everything: bank-side fraud, contract bugs, lost keys and stablecoin freezes are all outside it.

The problem escrow solves

In a peer-to-peer trade, two strangers swap USDT for dirhams. If the buyer pays first, the seller could keep the dirhams and never send the USDT. If the seller sends first, the buyer could keep the USDT and never pay. Escrow removes that standoff by taking the seller's crypto out of reach of both parties until the trade is settled.

With traditional escrow, a company holds the asset. With smart-contract escrow, a program on the blockchain holds it. The difference matters: a company can be hacked, make mistakes or misuse funds, while a contract does only what its code allows. That is also its limit, as we explain below.

Step by step: who holds what at each moment

  1. The offer. The seller posts a price and amount, and the buyer accepts. Nothing has moved yet. Each side still controls their own assets.
  2. The lock. The seller sends USDT into the escrow contract. From this moment, the contract holds the USDT. The seller can no longer spend it, and the buyer cannot take it.
  3. The payment. The buyer sends dirhams by bank transfer, directly to the seller's account, and marks the order as paid. The dirhams move through the banking system, not through the contract.
  4. The check. The seller opens their own banking app and confirms the full amount has arrived from an account in the buyer's name. A screenshot is not confirmation.
  5. The release. The seller approves release, and the contract sends the USDT to the buyer's wallet. The buyer now holds the USDT and the seller holds the dirhams.

If the buyer never pays, the order usually times out and the contract returns the USDT to the seller, under whatever timeout rules the contract defines.

What happens in a dispute

Disputes almost always come down to one question: did the agreed payment arrive, in the agreed method, from the right account? A contract cannot answer that on its own, because it cannot see bank accounts. So escrow designs add a dispute path, typically a resolver or arbitration process that reviews evidence from both sides and then instructs the contract to release or return the funds.

That means the dispute process, and the rules governing who can trigger it, deserve as much scrutiny as the contract itself. Our guide to how P2P escrow disputes are resolved covers the evidence that decides outcomes.

Why the design matters

A centralised exchange pools many users' funds in wallets it controls. That pool is what attackers target, as the October 2026 Binance incident showed (see our Binance hack explainer). In a smart-contract escrow design, each trade's crypto is locked separately under published rules, so there is no single company wallet holding everyone's funds.

Well-built escrow contracts are deployed on chain where anyone can read them, and are independently audited. Before trading through any escrow, it is reasonable to ask where the contract is published and who audited it.

What escrow does not protect against

  • Bank-transfer fraud. Fake receipts, payments from third parties and reversed transfers all happen on the bank side. Escrow cannot detect them; only the seller's own check can. See how to verify a payment.
  • Contract bugs. Audits reduce risk but do not eliminate it. Code does exactly what it says, including mistakes.
  • Lost keys. If you lose access to your own wallet, no escrow can recover it for you.
  • Stablecoin freezes. Issuers such as Tether can freeze USDT at any address linked to crime, including addresses inside contracts. See USDT freezes explained.
  • Releasing too early. If a seller releases before confirming payment, the contract will follow the instruction. Escrow protects the sequence only if the seller follows it.

A short checklist

  • Confirm the USDT is locked in escrow before you pay.
  • Pay only from an account in your own name, to the account shown in the order.
  • As a seller, confirm the payment in your banking app before releasing.
  • Keep every message and record inside the platform.
  • Raise a dispute before any timer runs out if something does not match.

Related guides

This article is general information about how smart-contract escrow works and is current as at the date shown above. It does not describe any specific platform's contracts or dispute rules. Nothing here is legal, tax or financial advice, and nothing on this website constitutes a financial product offer or solicitation.

Reviewed by
BlockX Team
Last updated