Login
Learn Bitcoin is live in Beta - spot an issue or have a suggestion? We'd love to hear it!
Home Glossary B BIP 68 (Relative Locktime)

BIP 68 (Relative Locktime)

Enables transactions to define time locks based on the age of inputs, used alongside OP_CHECKSEQUENCEVERIFY.
Share

BIP 68, in BIP-68, introduced a concept of relative locktime. Rather than referencing an absolute block number or timestamp (as BIP 65 does), it uses the age of the spent outputs in blocks or seconds. You can think of it as a countdown timer that starts once the transaction’s inputs are confirmed.

This mechanism is particularly useful when combined with OP_CHECKSEQUENCEVERIFY (CSV) from BIP 112. Developers can create more flexible payment channel designs where parties must wait a certain number of blocks to spend funds, ensuring fair closing procedures. Overall, BIP 68 helped pave the way for advanced layer-2 solutions by offering fine-grained control over transaction spendability.

Key takeaways
Locks funds based on how long inputs have aged
Pairs with BIP 112’s OP_CHECKSEQUENCEVERIFY
Essential for sophisticated layer-2 contract logic
Learn Bitcoin visual
Learn how to

Be Your Own Bank

Be Your Own Bank teaches you how to securely store and manage your Bitcoin, giving you full control over your finances. Unlock the power of self-custody and financial sovereignty, so you can confidently operate without intermediaries.

Take the Survey
30 sec
Free
Suggest a Term

Have a term to suggest? Enter it below and help us expand our vocabulary!