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

BIP 65 (OP_CHECKLOCKTIMEVERIFY)

Added a script opcode (CLTV) enabling funds to be locked until a certain block height or timestamp is reached.
Share

BIP 65, outlined in BIP-65, introduced OP_CHECKLOCKTIMEVERIFY (CLTV). This opcode enforces that an output can only be spent after a specific block height or timestamp has been reached. It’s like a timed vault where you can’t open the door until the clock strikes a certain moment.

CLTV opened the door to more advanced scripting use cases, such as payment channels and trust-minimized escrow. By restricting spending until a future time, users can create contracts where funds remain locked until the agreed-upon conditions are met. Along with later proposals like OP_CHECKSEQUENCEVERIFY (BIP 112), CLTV helps developers build sophisticated layer-2 applications on top of Bitcoin.

Key takeaways
Implements time-based spending constraints
Enables contracts like payment channels, escrows
Strengthens Bitcoin’s smart contract flexibility
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!