Skip to content
Onchain Economics

Hashed Timelock Contract(HTLC)

A smart contract that locks funds with two conditions: a cryptographic hash preimage and a time deadline.

In-Depth Explanation

HTLCs enable conditional payments: reveal the secret before the deadline to claim funds, or the sender can reclaim after timeout. This mechanism powers atomic swaps and payment channels like Lightning Network. The hash ensures atomicity—revealing the secret on one chain lets the counterparty claim on the other.

Related Terms

More in DeFi Primitives

View all →