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

    Interface TapscriptSegment

    Bitcoin Script segment of a spending path — enforced on-chain.

    interface TapscriptSegment {
        asm?: AsmToken[];
        cltv?: string | bigint;
        csv?: { type: "seconds" | "blocks"; value: string | bigint };
        signers: SignerRef[];
        witness?: WitnessRef[];
    }
    Index

    Properties

    asm?: AsmToken[]

    Optional standard-opcode condition (e.g. a hashlock), encoded into a ConditionMultisig leaf — or ConditionCSVMultisig when combined with csv.

    cltv?: string | bigint

    Absolute timelock (CLTV): a literal or a "$param" reference. Mutually exclusive with csv/asm.

    csv?: { type: "seconds" | "blocks"; value: string | bigint }

    Relative timelock (CSV). The value is a literal or a "$param" reference resolved against the constructor args (same convention as SignerRef). Combinable with asm (condition + CSV); mutually exclusive with cltv.

    signers: SignerRef[]

    Required signers. The tweaked co-signer is appended automatically when the path has an arkadeScript.

    witness?: WitnessRef[]

    Items satisfying the condition (e.g. an HTLC preimage); set via the ConditionWitness PSBT field.