@xo-cash/types
    Preparing search index...

    Type Alias XOTemplateLockingScript

    XOTemplateLockingScript: XOTemplateViewProperties & {
        actions?: (...)[];
        balance?: Partial<(...)>;
        lockingBytecode: string;
        lockingType?: XOTemplateLockingType;
        privacy?: (...) | (...);
        roles?: Record<(...), (...)>;
        selectable?: boolean;
        state?: XOTemplateState;
        unlockingBytecode?: string;
    }

    A locking script definition in the template.

    Type Declaration

    • Optionalactions?: (...)[]

      The actions available for this locking script.

    • Optionalbalance?: Partial<(...)>

      Estimated ownership in the optional set of asset amounts specified.

    • lockingBytecode: string

      The locking script bytecode.

    • OptionallockingType?: XOTemplateLockingType

      The type of locking mechanism. Defaults to 'p2s' if not specified.

    • Optionalprivacy?: (...) | (...)

      Privacy level for outputs locked to this script.

      • number: A numeric privacy level.
      • string: A CashASM expression that evaluates to a privacy level.
    • Optionalroles?: Record<(...), (...)>

      Specific context for each role participating in this locking script.

    • Optionalselectable?: boolean

      Whether outputs locked to this script should be available for coin selection.

    • Optionalstate?: XOTemplateState

      List of items to track as state for all participants.

    • OptionalunlockingBytecode?: string

      Optional default unlocking bytecode when used in automatic coin selection.