What are CLTV and CSV timelocks?
Experienced · Updated
CLTV and CSV are timelocks. CLTV, absolute locktime verification, delays a spend until a fixed block height or clock time. The spending transaction has to carry a locktime at that point or later. CSV, sequence verification, is relative: the delay is measured from when the output was confirmed, in blocks or in time. Before that deadline, that script path cannot be used. After it, it can. They do not delete the coins. They postpone a path.
For you, a vault with CLTV does not move until the agreed height, and a Lightning channel uses CSV to give the other party time to react before a refund or penalty path opens. The delay is the protection: whoever publishes a state has to wait, and during the wait the other party can act. For a node operator, they are script rules like the others. A spend that comes too early fails. A script template is not pasted here, and neither is a way to use a timelock to take someone's coins.
Informational text from Criptos.ai. It is not a buy or sell recommendation, and it is not tax advice. This is general information, not financial, tax or legal advice. We do not promise gains.
Articles
In the Academy: Advanced · In the Academy · In the glossary