Opcodes · locktime · enabled
OP_CHECKLOCKTIMEVERIFY (0xb1)
Fails unless the transaction's locktime is at least t (block height or time, same kind) and the input is not final. Leaves t on the stack. Inherited from Bitcoin's BIP-65.
Verified
- Stack in → out
- t → t
- Since
- BIP-65 soft fork (2015), inherited at the 2017 split
- Cost
- Base instruction cost 100.
- Bitcoin status
- Same in Bitcoin (BTC)
- Also known as
- OP_NOP2, OP_CLTV
Example
<expiry> OP_CHECKLOCKTIMEVERIFY OP_DROP <pubkey> OP_CHECKSIG Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.