Login
Learn Bitcoin is live in Beta - spot an issue or have a suggestion? We'd love to hear it!
Home Glossary L Locktime

Locktime

A field in a Bitcoin transaction specifying the earliest block height or timestamp at which it can be included in a block.
Share

Locktime (nLocktime) can be set to a specific block height or Unix timestamp. If the network’s block height or median time is below that threshold, nodes refuse to confirm the transaction. This feature allows delayed spending of UTXOs—useful for escrow arrangements or time-based contracts (e.g., CLTV). Many wallets default to a locktime of 0, meaning it’s immediately valid. When combined with partial signatures and advanced scripting, locktime can implement scheduled payouts, payment channels, or other contract-like mechanisms in Bitcoin’s limited script environment.

Key takeaways
Acts as a do-not-confirm-before date or block height
Often used with time-based opcodes for escrow/payment channels
nLocktime set to 0 means the transaction is valid immediately
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!