@arkade-os/sdk Documentation - v0.4.21
    Preparing search index...

    Function getSequence

    • Extract the timelock value encoded in a timelocked tapleaf, if any.

      The return value is unit-ambiguous: for a CSV leaf it is a BIP-68 nSequence (relative timelock); for a CLTV leaf it is an absolute nLockTime. Callers must know which leaf shape they are inspecting to interpret the number correctly, and must not copy a CSV result into Transaction.lockTime (or vice versa).

      Parameters

      Returns number | undefined

      The encoded timelock value, or undefined when neither a CSV nor CLTV path is present

      VtxoScript.exitPaths