EN

Time locks and conditions

4 minDifficulty Checked 2026-11-10
Key takeaways
  • Before FinishAfter an escrow is held. After CancelAfter it is expired.
  • A condition is a hash lock. The matching fulfillment opens it.
  • Finishing with a fulfillment costs at least 330 drops, more for larger fulfillments.

An escrow is always in one of a few states.

Held. The finish time has not come. Nothing can be done.

Ready. The finish time has passed and there is no password. Anyone can finish it, and the recipient gets paid.

Conditionally ready. There is a password. The escrow can be finished only by someone who shows it. If there is also a finish time, that time must pass first.

Expired. The expiration time passed before anyone finished it. It can no longer pay the recipient. Anyone can cancel it, and the sender gets the funds back.

The password is called a fulfillment. The escrow stores only a fingerprint of it, called the condition. Showing the condition tells nobody the password. Whoever knows the password can finish the escrow, so it stays secret until it is time to release.

A common pattern: the sender makes the password, locks funds with its fingerprint and sets an expiration. When the other side delivers what was agreed, the sender hands over the password. If that never happens, the escrow expires and the sender cancels it.

A conditional escrow always needs an expiration. Otherwise a lost password would lock the funds for good.

Check yourself3 questions
1. An escrow has passed its CancelAfter time. What can still happen?
2. What opens a conditional escrow?
3. Which clock decides whether a finish time has passed?
Sources
Next lessonToken escrow4 min