Opcodes · locktime · enabled

OP_CHECKSEQUENCEVERIFY (0xb2)

Fails unless the input's relative locktime (sequence number) is at least n. Leaves n on the stack. Inherited from Bitcoin's BIP-112.

Verified
Stack in → out
n → n
Since
BIP-112 soft fork (2016), inherited at the 2017 split
Cost
Base instruction cost 100.
Bitcoin status
Same in Bitcoin (BTC)
Also known as
OP_NOP3, OP_CSV

Example

<144> OP_CHECKSEQUENCEVERIFY OP_DROP <pubkey> OP_CHECKSIG

Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.

Sources

  1. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)
  2. BIP-112: CHECKSEQUENCEVERIFY