20 Apr, 2026
1 min read

locktime – Does the stack have access to the current block height when validating transaction? – Beragampengetahuan

That description is incorrect. There is no way to access the current time or height from within the Script language. Instead, there is a level of indirection: A transactions nLockTime or nSequence enforces an absolute or relative locktime on the transaction. The OP_CHECKLOCKTIMEVERIFY and OP_SEQUENCEVERIFY opcodes inside script compare the top stack element with the […]