What Is CSV Crypto and How CheckSequenceVerify Works

How do crypto casinos work and what people get wrong

CSV in crypto usually refers to CheckSequenceVerify, a Bitcoin script feature that lets coins stay unspendable until a relative time condition has passed. The key word is relative: the clock starts from the confirmation of a specific transaction output, not from a fixed calendar date written into the blockchain. That makes CSV useful for contracts where one party should be able to spend funds only after waiting a known delay.

Under the hood, CSV is not a coin, token, or separate network. It is a rule used inside Bitcoin Script, the limited programming language that defines how a UTXO can be spent. When a transaction tries to spend an output protected by CSV, Bitcoin nodes check whether the required sequence-based delay has elapsed. If it has not, the transaction is invalid and will not be accepted into the mempool or a block.

What is csv crypto in Bitcoin terms

In practical Bitcoin usage, CSV means adding a spending condition tied to the input’s nSequence field and the script opcode OP_CHECKSEQUENCEVERIFY. A wallet or contract sets a delay such as a number of blocks or a time interval. The output can exist on-chain immediately, but spending it is blocked until the delay matures.

This matters because Bitcoin originally had only simpler locking tools. CSV added a way to express “this output can be spent after X time has passed since it was confirmed,” which is different from saying “this output can be spent after block height Y” or “after date Z.” That distinction gives contract builders more flexibility when they do not know the exact future block or timestamp at the moment they create the output.

How CheckSequenceVerify is enforced by nodes

Every Bitcoin transaction input points to an earlier unspent output. To spend that output, the new transaction must satisfy the locking script attached to it. If that script contains CSV, the node evaluates the script and compares the required delay with the spending transaction’s sequence value and the age of the referenced output.

The process depends on two pieces working together. First, the output script says a delay is required. Second, the spending transaction sets its input sequence field in a way that encodes the same type of delay. Nodes then check whether the output is old enough. If the output has only recently confirmed, the spend fails validation. If enough blocks or enough time units have passed, the spend can proceed, assuming the signature and all other script conditions are also correct.

CSV became useful alongside changes to sequence handling that turned sequence from a simple replacement-related field into something that could support relative locktime. The important point for users is that the rule is consensus-enforced. A wallet cannot bypass it, and a miner cannot include a violating spend in a valid block.

Relative locktime versus absolute locktime

CSV is often confused with CLTV, or CheckLockTimeVerify. Both delay spending, but they do it differently. The short comparison below shows the operational difference that matters when building wallets, payment channels, or recovery paths.

Mechanism Time reference Common use
CSV Since output confirmation Recovery delays, channels
CLTV Fixed block or timestamp Timed payouts, escrows
No timelock Immediate spendability Standard transfers

That difference changes how contracts behave. An absolute locktime works well when the contract already knows the target time. A relative locktime works better when the delay should begin only after a funding transaction lands on-chain. Payment channel safety mechanisms often need that exact behavior.

What the sequence field actually does

The word “sequence” sounds like transaction ordering, which leads many newcomers in the wrong direction. In modern Bitcoin use, sequence can carry relative locktime information for each input. CSV reads that information and checks it against the age of the output being spent.

The delay can be measured either in blocks or in time-based units, depending on how the sequence value is encoded. Time-based relative locktime is not measured in exact wall-clock seconds from a phone or exchange app. It is interpreted through Bitcoin’s consensus rules, which rely on block-related time handling rather than a perfect external clock.

People searching what is csv crypto are usually trying to understand why a transaction can be validly signed yet still remain unbroadcastable for a while, and the sequence field is the reason. Signature validity and timelock maturity are separate checks. A wallet may hold a fully signed transaction that simply cannot pass node validation until the relative delay expires.

Why CSV matters for Lightning and wallet recovery design

CSV is a building block for Bitcoin’s Lightning Network. In channel designs, a delayed spend can protect the honest party if an outdated state is broadcast. The delay creates a response window. During that window, the counterparty can use a penalty or claim path defined by the contract. Without a relative delay, many of Lightning’s safety assumptions would be much harder to enforce on-chain.

Wallet recovery setups also use CSV. A common pattern is to create an output that a primary key can spend immediately, while a backup key can spend only after a delay, or the reverse depending on the design goal. That can reduce the risk of immediate theft from one compromised key while still preserving a recovery route if the main signer is lost.

These constructions are not limited to consumer wallets. Custodians, vault products, and advanced self-custody tools use delayed spending paths to separate fast access from high-security recovery. The tradeoff is obvious: stronger safety against sudden theft usually means slower access when something goes wrong.

Common misunderstandings about CSV

One frequent mistake is assuming CSV creates privacy by itself. It does not. A CSV-protected output is still visible on-chain, and the script pattern may reveal that a delayed spending condition exists. Privacy depends on the wider wallet design, address management, and spending behavior.

Another mistake is treating CSV as a fee or speed setting. It has nothing to do with transaction fees directly. A CSV-locked output can still be spent with a high fee once mature, and an unlocked output can still confirm slowly if the fee is low. Timelock rules and fee market behavior are separate layers.

It is also easy to think CSV applies to an entire wallet balance. In reality, it applies to specific outputs. One wallet can hold some coins that are immediately spendable and others that are delayed by script conditions. Wallet software may hide this complexity behind a single balance number, which is why advanced users often inspect UTXOs rather than relying only on the portfolio screen.

How to evaluate a CSV-based product or wallet feature

When a service advertises delayed withdrawals, vault protection, or smart recovery, the useful question is not whether it “uses Bitcoin smart contracts” but which spending paths exist and who controls each key. A solid design should explain the trigger for the delay, the length of the delay, and what happens if one signer disappears or a server goes offline.

The concrete takeaway is to read CSV as a waiting-rule attached to a specific Bitcoin output. If a wallet, custody tool, or Layer 2 product uses it, check three things before funding it: whether the delay is relative or absolute, which party can spend during and after the delay, and whether the recovery path can be tested with a small amount first. Those details reveal far more than the marketing label.