Glossary·Technical

Timelock

A condition making a spend invalid until a height or a time is reached. Nothing happens at the deadline; a transaction every node would have rejected simply becomes acceptable, and whoever holds it may then broadcast it.

Four mechanisms implement it. The transaction’s own lock-time field and the OP_CHECKLOCKTIMEVERIFY opcode express an absolute point; the sequence field and OP_CHECKSEQUENCEVERIFY express an interval measured from the moment the coin being spent was confirmed.

The two forms differ in who is bound. A field is chosen by whoever builds the transaction and constrains nobody; an opcode sits in the output’s script, so the spender must satisfy it. Contracts need the second, and they work indirectly — the opcode forces the spender to declare a lock-time the network then refuses to mine early.

Relative locks reset whenever coins move, which is correct and routinely surprising: a wallet consolidating inputs can silently restart a delay somebody was depending on.

What a timelock cannot do is guarantee the transaction will confirm when the delay expires. A pre-signed transaction carries the fee it was signed with, possibly years earlier, and the hardest problem in vault and channel design is attaching fresh money to a stale transaction.

Where this comes up

Used in

Nearby terms

Reviewed Nov 2026