---
title: "Timelock — definition | Nuri Glossary"
description: "A rule that blocks a spend until a height or time passes."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/timelock"
---

# Timelock

A rule that blocks a spend until a height or time passes.

## Basically

A lock that only opens after a certain time or block. Used for refunds, recovery plans and payment channels.

## Key Takeaways

- A timelock is a script condition that blocks a spend until a height or time is reached.
- It is the backbone of refunds, recovery paths and payment channels.
- It comes in absolute and relative flavors.

## The two kinds

An absolute timelock says this output cannot be spent before block X or date Y — the CHECKLOCKTIMEVERIFY opcode. A relative timelock says it cannot be spent until N blocks have passed since its parent confirmed — CHECKSEQUENCEVERIFY. Between them, protocols can express deadlines and grace periods anchored to the chain itself.

## Where you meet them

Every Lightning HTLC carries one, so a hop that never forwards gets its funds returned automatically. Vault designs delay every withdrawal so an owner can intercept a thief. Inheritance setups release funds only after a long stillness. Freezing an output until a time arrives is often the simplest guarantee a protocol can offer.

## Caveat

Timelocks are probabilistic walls in wall-clock terms — they measure blocks, and block times wobble around the ten-minute average. And an expired timelock permits a spend; it does not cause one. Something still has to act when the lock lifts, which is why watchers and bots exist.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
