THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Can Bitcoin nSequence Guarantee an Exact Payment Delay?

permalink THAMER
#bip68#bitcoin#delay#nsequence#relative-locktime

No. With BIP68, an eligible nSequence value can impose a minimum relative lock measured in blocks or 512-second units, but it cannot guarantee that a payment will execute or confirm at an exact second.

BIP68 applies to version 2 or later transactions and only when the input's sequence disable flag is clear. The type flag selects height-based or time-based relative locking. The time-based form uses median-time-past context, not a stopwatch that starts when a user clicks Send.

After the sequence lock is satisfied, the transaction still needs to be broadcast and mined. Block intervals vary, fees affect inclusion, and nodes may have relay-policy requirements. A Script containing OP_CHECKSEQUENCEVERIFY can require a spending transaction to use a suitable relative lock, but it does not schedule a future broadcast.

Practical takeaway: use sequence locks to enforce earliest eligibility, and use separate software for notifications, broadcast attempts, and confirmation tracking.

Primary references

BIP68 — Relative lock-time: https://github.com/bitcoin/bips/blob/master/bip-0068.mediawiki

BIP112 — CHECKSEQUENCEVERIFY: https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects