All calculators

Bitcoin BIP68 Relative Timelock Calculator

Encode a relative lock in blocks or time into nSequence and inspect its exact BIP68 representation.

Encode a relative lock in blocks or time into nSequence and inspect its exact BIP68 representation.

How it works

The calculator applies the documented Bitcoin or BIP rule to the values you enter and returns a mathematical or serialization estimate. Protocol implementation details and real wallet behavior remain authoritative.

The formula

Blocks: nSequence=B. Time: units=ceil(seconds/512); nSequence=(1<<22)|units; BIP68 uses the low 16 bits.

Relative-lock mode • Relative blocks • Requested hours

Worked example

144 blocks → nSequence 144 (0x00000090). 24 hours → 169×512=86,528 seconds and nSequence 0x004000a9.

For educational and technical analysis only. Not financial advice, security auditing, wallet software or a guarantee of fund safety. Verify current BIPs and your wallet implementation before using real funds. Never enter a seed phrase or private key into a website.

Frequently asked questions

What does this calculator estimate?

Encode a relative lock in blocks or time into nSequence and inspect its exact BIP68 representation.

Should I enter a seed phrase or private key?

No. Never enter a recovery phrase, seed phrase or private key into this or any web calculator. These tools are designed to work without secret key material.

Is the result a security or financial guarantee?

No. It is an educational technical estimate based on the selected assumptions and cited specifications. Real software, wallet policy, network rules and correlated failures can change outcomes.

Last content reviewSeptember 10, 2026
Editorial reviewHe-Sab Editorial Review

Sources and references

These sources are used to verify terminology, formulas, and information related to this calculator.